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

Webp image upload issue #101

Open
SRIKANTHAR opened this issue Nov 9, 2022 · 3 comments
Open

Webp image upload issue #101

SRIKANTHAR opened this issue Nov 9, 2022 · 3 comments

Comments

@SRIKANTHAR
Copy link

webp images upload not supported it's giving this error message when trying to upload webp images has below

avatar_2_3_webp = open(image_ur)

at paperclip method "open" we are getting this error

ImageSpec::Error (#Paperclip::Tempfile:/tmp/18c5a2261d1d178068acb724a8a967b720221108-1242657-rpwwg520221108-1242657-n7zd3k.webp is not a supported image format. Sorry bub :():

we are using Rails 4.2 and ruby 2.3.0
paperclip (4.2.4)
paperclip-compression (0.3.11)
paperclip-optimizer (2.0.0)
ImageMagick 6.9.10-23

please help on this to how to fix this issue

@SRIKANTHAR
Copy link
Author

Full error like this please help on this to solve

Command :: PATH=/usr/bin/:$PATH; file -b --mime '/tmp/77d3665c3781984fe5e4214e177c662520221114-851123-ylizjj.webp'
Command :: PATH=/usr/bin/:$PATH; identify -format '%wx%h,%[exif:orientation]' '/tmp/77d3665c3781984fe5e4214e177c662520221114-851123-2qabaq.webp[0]' 2>/dev/null

Command :: PATH=/usr/bin/:$PATH; convert '/tmp/77d3665c3781984fe5e4214e177c662520221114-851123-2qabaq.webp[0]' -auto-orient -resize "1000x" -crop "1000x1000+0+0" +repage -quality 30 -interlace Plane '/tmp/77d3665c3781984fe5e4214e177c662520221114-851123-2qabaq20221114-851123-h925u5.webp'
Completed 500 Internal Server Error in 1921ms

ImageSpec::Error (#Paperclip::Tempfile:/tmp/77d3665c3781984fe5e4214e177c662520221114-851123-2qabaq20221114-851123-h925u5.webp is not a supported image format. Sorry bub :():
app/helpers/media_helper.rb:582:in create_media' app/controllers/media_controller.rb:395:in create'

@ssinghi
Copy link

ssinghi commented Dec 12, 2022

@SRIKANTHAR you perhaps need to install webp libraries for imagemagick.

@ssinghi
Copy link

ssinghi commented May 9, 2023

@SRIKANTHAR did it resolve the issue? Should we close it?

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

2 participants