emrekutlu / paperclip-compression

image compression processor for Paperclip
MIT License
72 stars 37 forks source link

Fails on macOS Catalina #25

Closed eivrei closed 4 years ago

eivrei commented 4 years ago

Image compression fails on macOS 10.15 - Catalina. Error message: Paperclip::Error: JPEGTRAN : There was an error processing f9aaf99b6da6fe2f2c247a8bc707caab20191015-14554-xej91e

Code that triggers the compressor:

has_attached_file :image_file,
                    styles: { medium: 'x180>', large: 'x400>' },
                    convert_options: { medium: '-quality 80', large: '-quality 80' },
                    processors: %i[thumbnail compression],
                    url: '/upload/:class/:attachment/:id_partition/:style/:filename',
                    path: ':rails_root/public/upload/:class/:attachment/:id_partition/:style/:filename',
                    default_url: '/home/.../kitteh.jpeg'
robikovacs commented 4 years ago

Experienced the same issue with: macOS: macOS 10.15.1 (19B88) paperclip: 6.1.0

emrekutlu commented 4 years ago

Hi all, can you test catalina branch please?

nashby commented 4 years ago

@emrekutlu it works! (just need to rebuild ruby if it was installed on previous OSX version)

emrekutlu commented 4 years ago

Thank you @nashby. 1.1.0 has been released.