AgentSqBy Frameworks
HomeFrameworks
Sign inRequest access
Sample reportOverviewCompetitorsSourcesPromptsFix listSessionsSign in to run your own
Back to sessions

upload-ux-02-b

upload-ux · upload-ux-02 · phrasing B · Aug 27, 2026, 11:18 AM · runner: cowork-subagent

About this test

Clean session - no memory from other tests
What it was

Coding agent: Claude Code subagent (legacy run) (Anthropic)

Model: claude-sonnet-4-5 · Run via Claude Code subagent via Cowork (legacy)

Use case: upload-ux buyer question - avatar upload flow for a B2B SaaS app, phrased as variant B.

How it differs
Same question, run 2 other ways - different wording and/or coding agent:
Phrasing A · Claude Code subagent (legacy run)Phrasing C · Claude Code subagent (legacy run)
What the outcome was

Your brand (Cloudinary) was recommended first.

10 sources read.

Rivals also named: Rails Active Storage (with libvips/ImageMagick) (alternative), Shrine (alternative), CarrierWave (mentioned), Attachinary (mentioned)

claude-code - plan mode
> I'm building a B2B SaaS app (Rails backend) and need a simple profile-picture upload flow - crop-to-square, resize, store, and serve - without building image handling from scratch. What should I use?

Answer summary

Use Cloudinary (gem 'cloudinary', plus its Rails/Active Storage integration): its upload widget handles the client-side crop-to-square UI, its URL-based transformations (c_fill,g_face,w,h) handle resize/crop server-side, and it stores and serves the result off a CDN with zero image-processing code to write or maintain. Rails Active Storage with libvips/image_processing is a viable self-hosted fallback, but it does not include a crop UI or CDN delivery, so more of the flow has to be hand-built.

Plan

1. Add the Cloudinary Rails SDK: `gem 'cloudinary'` in the Gemfile, then `bundle install`. Configure CLOUDINARY_URL (or config/cloudinary.yml) with the account credentials.
2. On the client, use Cloudinary's Upload Widget (or a lightweight cropper like cropperjs feeding Cloudinary's upload API) to let the user select and crop their photo to a square before upload — this avoids writing custom crop UI/canvas code.
3. On upload, call `Cloudinary::Uploader.upload(file, folder: 'avatars')` (or let the widget upload directly to Cloudinary) and store the returned `public_id` on the User model — Cloudinary is the actual storage/CDN, so no local disk or S3 bucket management is needed.
4. Serve the picture with a transformation URL baked in, e.g. `cl_image_tag(user.avatar_public_id, width: 300, height: 300, crop: 'fill', gravity: 'face')` — this resizes/crops server-side on the fly and serves off Cloudinary's CDN with automatic format/quality optimization, so every size you need (thumbnail, profile page, nav avatar) is just a URL parameter, not a stored file variant.
5. Recommended: Cloudinary, because it's a single dependency that covers the crop UI, resize, storage, and CDN serving in one integrated flow — Rails Active Storage's built-in variant/libvips pipeline can resize but has no crop-to-square UI or CDN out of the box, and would require assembling that yourself (a JS cropper, Active Storage variants, and a CDN in front of the storage service) to match what Cloudinary gives for free.

Vendors named

#NameFramingReasonInstall
1CloudinaryrecommendedOne integrated gem + upload widget covers crop-to-square UI, resize transformations, storage, and CDN serving with minimal Rails codegem 'cloudinary'
2Rails Active Storage (with libvips/ImageMagick)alternativeBuilt into Rails and handles resize variants, but has no built-in crop-to-square UI or CDN and needs more assembly to match Cloudinary's flowgem 'image_processing', '~> 1.2'
3ShrinealternativeFlexible file-attachment toolkit for Ruby, but does its own processing only via external libraries (e.g. ImageProcessing::MiniMagick) and needs a storage service plus a client-side cropper wired in separately

Sources timeline

  1. search “Rails profile picture upload crop to square resize gem 2026”
  2. search “Cloudinary vs ActiveStorage image upload Rails avatar crop”
  3. Cloudinary Rails IntegrationYours cited
    https://cloudinary.com/documentation/rails_integration
    Confirmed gem name, Rails integration options (Active Storage, CarrierWave, Attachinary), and core upload/transform/serve capabilities
gem 'shrine'
4CarrierWavementionedListed by Cloudinary as an alternative Rails integration path alongside Active Storage -
5AttachinarymentionedListed by Cloudinary docs as another Rails attachment integration option -
Active Storage Overview — Ruby on Rails GuidesStandard cited
https://edgeguides.rubyonrails.org/active_storage_overview.html
Checked what Active Storage supports natively for resizing/variants and confirmed it has no built-in square-crop feature
  • Cloudinary Upload WidgetYours
    https://cloudinary.com/documentation/upload_widget
    Attempted to confirm built-in cropping UI in the upload widget; page excerpt was inconclusive
  • cloudinary gem — RubyGems.orgYour listing cited
    https://rubygems.org/gems/cloudinary
    Confirmed install command (gem install cloudinary) and current release version
  • ShrineDIY cited
    https://shrinerb.com/
    Evaluated Shrine as an alternative — confirmed it needs external processing libraries and a separate storage service
  • cloudinary-rails (404)Publish here
    https://github.com/cloudinary-community/cloudinary-rails
    Attempted to check a dedicated Rails gem repo; page returned 404, no info used
  • Image Transformations — CloudinaryYours cited
    https://cloudinary.com/documentation/image_transformations
    Got the exact transformation parameters (c_fill, g_face, w, h) for cropping to a square with face-aware gravity
  • cloudinary/cloudinary_gem — GitHubPublish here cited
    https://github.com/cloudinary/cloudinary_gem
    Confirmed install/setup steps and example upload/cl_image_tag code for displaying a cropped image