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

convert image #109

Open
Meenal-goyal opened this issue Jul 14, 2014 · 0 comments
Open

convert image #109

Meenal-goyal opened this issue Jul 14, 2014 · 0 comments

Comments

@Meenal-goyal
Copy link

I am running this command on the image:

 convert -verbose -density 150 -trim input.jpg -quality 100 -sharpen 0x1.0 output.jpg

But I wanted to execute same thing using ruby script, so i tried this:

im = Magick::Image.read(pdf_file_name)
im.each do | img |
im[0].density = "150"
im[0].trim!
im[0] = im[0].sharpen(0,1.0)
im[0].write("final.jpg") {self.quality = 100}
end

The problem is both are giving different outputs. Could you please tell where am i going wrong?

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

1 participant