Thoughts about tech, programming, Bitcoin, and more.

Weird Heroku Gotcha: JPG not JPEG

I just deployed a change to Heroku where I added a .jpeg image and it broke the app.

Apparently, you cannot use .jpeg extensions on Heroku – at least not using Rail’s <%= image_tag %>. I didn’t attempt to use an HTML <img> tag to see if the issue still occurred. I’m thinking it might’ve been fine in that case.

Nonetheless, changing the file extension to .jpg and updating the corresponding <%= image_tag %> to .jpg resolved the issue.

Subscribe to Daniel Lemky

Sign up now to get access to the library of members-only issues.
Jamie Larson
Subscribe