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

Problems with Quantize #118

Open
antoniodisanto92 opened this issue Nov 3, 2014 · 2 comments
Open

Problems with Quantize #118

antoniodisanto92 opened this issue Nov 3, 2014 · 2 comments

Comments

@antoniodisanto92
Copy link

Hello,

I'm writing because I have a little Issue that I'm becoming crazy on trying to fix it, with no success atm.

I have a Rails app that generate some .tiff files in Grayscale and - in local [rmagick: 2.13.3 | ImageMagick: 6.8.9-8] - all is working fine. On my server, using dokku [rmagick: 2.13.3 - ImageMagick: 6.7.7-10], the .tiff files are correctly created as I want, but the quantize doesn't work. In this way, starting also from a Grayscale image, I get in output an RGB image.

Here is the part of the code in my Service:

schema = Magick::ImageList.new("public/img/test.png")
......
schema.format = 'tiff'
schema_path = "#{Rails.root}/tmp/NEW.tiff'
schema.quantize(256, Magick::GRAYColorspace).write(schema_path)
schema.destroy!
GC.start

return schema_path

Any idea? I have to force destroy and GC.start because the images can be heavy and big.

Thanks

@bf4
Copy link

bf4 commented Nov 3, 2014

Please open an issue at https://github.com/gemhome/rmagick/ We no longer have commit to this repository

@antoniodisanto92
Copy link
Author

Done. Thanks

btakita pushed a commit to btakita/rmagick that referenced this issue Jan 7, 2015
Revert "Fixed: crash trying to 'test_monitor' on Windows(x64)"
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