Some images auto converting, others not?
Hello guys,
First post here. Loving the framework. We're using it to create an app relating to photographers and them sending pictures somehow.
We are using Cloudinary, and to get our pictures back after being uploaded, we build up the url in bits, in case we need the width and height transformations, and always display them in .png
Most images are uploaded in .jpg, and we get the .png alright. Example:
https://res.cloudinary.com/ostest/image/upload/69.png
But others, don't convert:
https://res.cloudinary.com/ostest/image/upload/75.png
If you manually change the extension to .jpg, it shows up.
Can anyone enlighten me as to what are we doing wrong?
Thank you !
-
Thank you for contacting us.
In general, to help debug Cloudinary URLs, the response includes a `X-Cld-Error` header.
Looking at the URL you've shared, I see it generates the following error -X-Cld-Error: X-Cld-Error: File size too large. Got 10846448. Maximum is 10485760
When converting to png it usually a bigger size and for your plan, it exceeds the limit (10MB).
Hope this helps, please let us know if you have any further questions.Thanks,
Shirly1 -
Wonderful. That explains a lot. In the meantime, we're foregoing the conversion and keeping .jpgs as such, and in the future, I'll talk to the client to see which Cloudinary plan suits them best for their purpose.
Thanks so much Shirly
1
Post is closed for comments.
Comments
2 comments