Softwr

Web Development · head to head

imgix vs Stimulus

imgix logo

imgix

Web Development

Image and video processing API with CDN delivery, billed in credits

From
On request
Free plan
No
Stimulus logo

Stimulus

Web Development

Small JavaScript framework that adds behaviour to existing server rendered HTML

From
Free
Free plan
Yes

The short version

  • Stimulus is an MIT licensed JavaScript framework.
  • Stimulus is free; imgix prices on request.
  • Only imgix lists URL-based transformations; only Stimulus lists works with server rendered HTML.
  • Where imgix falls short: credit-based billing makes monthly cost hard to predict for pages that use many transformations.
  • Where Stimulus falls short: does not render templates, so HTML must come from the server or another tool.

How do imgix and Stimulus differ?

imgix and Stimulus differ on starting price (On request against Free), pricing model (Quote against Open-source) and free tier (No against Yes). Only the attributes on which imgix and Stimulus actually diverge.

Attributes where imgix and Stimulus differ
AttributeimgixStimulus
Starting priceOn requestFree
Pricing modelQuoteOpen-source
Free tierNoYes
PlatformsWeb, APIWeb

Not yet recorded: category for imgix, founded for imgix.

Which features does each one have?

They share no listed features; 5 appear only for imgix and 7 only for Stimulus. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in imgix

  • URL-based transformations
  • CDN delivery
  • Video and AI edits
  • SDKs
  • Origin connectors

Only in Stimulus

  • Controllers attached through data-controller
  • Actions that bind DOM events to controller methods
  • Targets for locating elements inside a controller
  • Values that read, write and observe data attributes
  • Works with server rendered HTML
  • Designed to pair with Turbo in Hotwire
  • MIT licensed open source

What is each one used for?

imgix is most often brought in for A publisher serving one master image in many sizes and formats; Stimulus for adding small interactions to Rails views. The jobs each tool is most often brought in to do.

imgix

  • A publisher serving one master image in many sizes and formatsnot Stimulus
  • An e-commerce site generating product thumbnails on requestnot Stimulus
  • A marketplace moving image processing off its own serversnot Stimulus
  • A team adding video and AI transformations to an existing image pipelinenot Stimulus

Stimulus

  • Adding small interactions to Rails viewsnot imgix
  • Progressive enhancement of server rendered pagesnot imgix
  • Pairing with Turbo for fast page updatesnot imgix
  • Replacing scattered jQuery codenot imgix
  • Form and widget behaviour on existing HTMLnot imgix

Where do imgix and Stimulus fall short?

imgix's most cited limit: credit-based billing makes monthly cost hard to predict for pages that use many transformations. Stimulus's: does not render templates, so HTML must come from the server or another tool. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

imgix

  • Credit-based billing makes monthly cost hard to predict for pages that use many transformations
  • Plan prices were not readable on the pricing page, so the cost of each bundle has to be checked directly
  • Every image request depends on imgix being up, so an outage reaches users without a fallback you control
  • URL parameters tie your templates to imgix syntax, which makes leaving a rewrite job
  • It processes and delivers only; asset management and tagging need a separate tool

Stimulus

  • Does not render templates, so HTML must come from the server or another tool
  • No built in routing, data fetching or client side state management
  • Behaviour is tied to data attributes in markup, which some teams find harder to trace
  • Not a component framework, so large interactive interfaces need other libraries

How much do imgix and Stimulus cost?

imgix is priced on request; Stimulus is free to use. Plan by plan below, from each vendor's own pricing page.

imgix

On request
  • imgixOn request
    • Credit-based bundles
    • Storage 2 credits per GB per month
    • Bandwidth 1 credit per GB

Stimulus

Free

No published plan breakdown. See the Stimulus review.

Which should you pick?

Choose imgix if

  • You need url-based transformations.
  • You work on Web, API.
  • You also want cdn delivery.

Choose Stimulus if

  • You need controllers attached through data-controller.
  • You want to start without paying.
  • You also want actions that bind dom events to controller methods.

Questions people ask

Is imgix or Stimulus better?
It depends on the job. imgix fits a publisher serving one master image in many sizes and formats; Stimulus fits adding small interactions to Rails views. imgix starts at On request and Stimulus at Free.
Which is cheaper, imgix or Stimulus?
Stimulus has a free tier; the other does not. Paid plans start at On request for imgix and Free for Stimulus.
Does imgix or Stimulus run on more platforms?
imgix runs on Web, API. Stimulus runs on Web.
Can I use Stimulus for free?
Yes. Stimulus has a free tier, so you can try it without paying. imgix starts at On request.
What is imgix best used for?
imgix is most often used for a publisher serving one master image in many sizes and formats, an e-commerce site generating product thumbnails on request, a marketplace moving image processing off its own servers, a team adding video and ai transformations to an existing image pipeline. Of those, a publisher serving one master image in many sizes and formats and an e-commerce site generating product thumbnails on request are not what Stimulus is typically brought in for.
What can imgix do that Stimulus cannot?
imgix covers URL-based transformations, CDN delivery, Video and AI edits, SDKs. Stimulus covers Controllers attached through data-controller, Actions that bind DOM events to controller methods, Targets for locating elements inside a controller, Values that read, write and observe data attributes.

Answered from the vendors’ own pages

imgix: How is imgix billed?

In credits: storage costs 2 credits per GB per month, bandwidth 1 credit per GB, and edits cost extra.

Stimulus: What is Stimulus used for?

Stimulus enhances HTML that already exists on the page by connecting JavaScript controllers to elements through data attributes. It does not generate the HTML itself.

Source
imgix: Do API calls change with the credits model?

No. imgix states that endpoints and SDKs are unchanged.

Stimulus: What are the core concepts in Stimulus?

Controllers are the main unit, and they are joined by actions, targets and values. Actions link events to methods, targets find elements and values store state in data attributes.

Source
imgix: Does it do video?

Yes. Video and AI transformations are part of the platform.

Stimulus: What licence does Stimulus use?

The GitHub repository states that Stimulus is released under the MIT licence. It is free to use.

Source
Stimulus: Why was Stimulus created?

According to the project's origin page, Basecamp used a mix of jQuery, vanilla JavaScript and object oriented subsystems that were hard to reuse and learn. Stimulus condensed those patterns into a small, consistent framework.

Source
Share

Related pages

Other head to heads