Going through the [1]changelog, it looks like 0.17.0 increased
image_optim's eagerness to fail when it can't find the path of
a worker. It looks like you may be able to disable the problem
workers when you initialize ImageOptim:



ImageOptim.new(:pngqant => false, :jpegtran => false, :svgo =>
false)



--
Andrew





On Mon, Oct 6, 2014, at 12:03 PM, Saad Bin Akhlaq wrote:

Hi,

I have just updated gem image_optim from 0.13.2 to 0.17 and now
when I am uploading the image I am getting these errors

ImageOptim::BinResolver::Error: Bin resolving errors:
pngquant worker: `pngquant` not found; please provide proper
binary or disable this worker (--no-pngquant argument or
`:pngquant => false` through options)
jpegtran worker: `jpegrescan` not found; please provide proper
binary or disable this worker (--no-jpegtran argument or
`:jpegtran => false` through options)
svgo worker: `svgo` not found; please provide proper binary or
disable this worker (--no-svgo argument or `:svgo => false`
through options)
from
/app/vendor/bundle/ruby/2.1.0/gems/image_optim-0.17.0/lib/image
_optim/worker.rb:57:in `resolve_all!'
from
/app/vendor/bundle/ruby/2.1.0/gems/image_optim-0.17.0/lib/image
_optim.rb:186:in `create_workers_by_format'
from
/app/vendor/bundle/ruby/2.1.0/gems/image_optim-0.17.0/lib/image
_optim.rb:54:in `initialize'
from /app/app/uploaders/base_uploader.rb:22:in `new'
from /app/app/uploaders/base_uploader.rb:22:in `optimize'
from
/app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.9.0/lib/carrie
rwave/uploader/processing.rb:85:in `block in process!'
from
/app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.9.0/lib/carrie
rwave/uploader/processing.rb:81:in `each'
from
/app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.9.0/lib/carrie
rwave/uploader/processing.rb:81:in `process!'
from
/app/vendor/bundle/ruby/2.1.0/gems/carrierwave_backgrounder-0.4
.0/lib/backgrounder/delay.rb:14:in `process!'
from
/app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.9.0/lib/carrie
rwave/uploader/callbacks.rb:18:in `block in with_callbacks'
from
/app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.9.0/lib/carrie
rwave/uploader/callbacks.rb:18:in `each'
from
/app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.9.0/lib/carrie
rwave/uploader/callbacks.rb:18:in `with_callbacks'
from
/app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.9.0/lib/carrie
rwave/uploader/cache.rb:122:in `cache!'
from
/app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.9.0/lib/carrie
rwave/uploader/download.rb:65:in `download!'
from
/app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.9.0/lib/carrie
rwave/mount.rb:353:in `remote_url='
from
/app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.9.0/lib/carrie
rwave/mount.rb:203:in `remote_image_url='
from
/app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.9.0/lib/carrie
rwave/orm/activerecord.rb:44:in `remote_image_url='
from (irb):3
from
/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.9/lib/rails/com
mands/console.rb:90:in `start'
from
/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.9/lib/rails/com
mands/console.rb:9:in `start'
from
/app/vendor/bundle/ruby/2.1.0/gems/railties-4.0.9/lib/rails/com
mands.rb:62:in `<top (required)>'
from /app/bin/rails:20:in `require'
from /app/bin/rails:20:in `<main>'


Could you please help me out.

--

--

You received this message because you are subscribed to the
Google

Groups "Heroku" group.



To unsubscribe from this group, send email to

heroku+unsubscr...@googlegroups.com

For more options, visit this group at

[2]http://groups.google.com/group/heroku?hl=en_US?hl=en



---

You received this message because you are subscribed to the
Google Groups "Heroku Community" group.

To unsubscribe from this group and stop receiving emails from
it, send an email to [3]heroku+unsubscr...@googlegroups.com.

For more options, visit [4]https://groups.google.com/d/optout.

References

1. https://github.com/toy/image_optim/blob/master/CHANGELOG.markdown
2. http://groups.google.com/group/heroku?hl=en_US?hl=en
3. mailto:heroku+unsubscr...@googlegroups.com
4. https://groups.google.com/d/optout

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
heroku+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to