Closed floodico closed 3 years ago
I believe image_optim writes to the /tmp
directory for caching. It's possible vagrant doesn't have permission to write to that directory?
Sadly the error class is not visible, if you are running this from ruby code it could be helpful if you can wrap it with following code to see the error class:
begin
…
rescue => e
p e.class
end
Anyway one type of permission errors is already rescued by code that was adapted from fileutils, but in recent ruby version another type is rescued, so maybe that can be the culprit. Can you please try the version from branch https://github.com/toy/image_optim/compare/update-copy_metadata-method?
Merged in e9d4f57ca19273bb91a9ecad121371a9d54533f8, please reopen this or open a new issue if the problem is not resolved
I'm getting this error when trying to optimize my GIF:
Permission denied @ apply2files - /home/vagrant/shared/assets/3_STORAGE/9RJX86Ep99p6_preview.gif20201201-18447-usagqr.tmp
Stacktrace: