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

How can I save width and height of images uploaded with CarrieWave? #921

Open
tmhr94 opened this issue Mar 28, 2022 · 1 comment
Open

How can I save width and height of images uploaded with CarrieWave? #921

tmhr94 opened this issue Mar 28, 2022 · 1 comment

Comments

@tmhr94
Copy link

tmhr94 commented Mar 28, 2022

Hi, there.
Thanks for reading.

I've upgraded the gem's version from 4.2.4 to 5.1.1.
After upgraded, I found an error undefined method 'extract_dimensions' so I've changed the method to extract_size that solves the error.
But I also found an unexpected stuff that is width and height of images uploaded with CarrieWave not saved.

I know this is due to a breaking change at e220fc4 .

How can I find another way to save width and height without using extract_dimensions?
I'd appreciate it if you could tell me about it.

@tmhr94
Copy link
Author

tmhr94 commented Sep 7, 2022

@galetahub
Sorry for the sudden mention to you.
I couldn't understand why you have done a commit below.
Is there any problem with this codes??
If you can explain about it, would you please tell me reasons?

e220fc4

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

1 participant