Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprockets compiles from "*.jpeg" to "*.jpg" that creates an error #775

Closed
loqimean opened this issue Jan 15, 2023 · 2 comments
Closed

Sprockets compiles from "*.jpeg" to "*.jpg" that creates an error #775

loqimean opened this issue Jan 15, 2023 · 2 comments

Comments

@loqimean
Copy link

Expected behavior

hello.jpeg is founded as hello.jpg OR compiled as it is: hello.jpeg

Actual behavior

Instead of this Sprockets on production compiles my file called hello.jpeg to file hello.jpg and because of it I have an error on my production where I have the next chunk of code: image_path("hello.jpeg"), because of file are stored with *.jpeg extension, but compiled as *.jpg

System configuration

  • Sprockets version - 2.0.0
  • Ruby version - 6.0.3

Example App (Reproduction)

Will be added soon

@rubydesign
Copy link

I second that. Must be a very recent change.

image.jpeg gets compiled to image.jpg

and then image_tag("image.jpeg") throws and error, but only in product (just the way we love it, error only in production :-)

Reverting, i would suggest even yanking

@chadlwilson
Copy link
Contributor

I think this is fixed in #781 released in 4.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants