Forum: Ruby Setting Rmagick resolution when reading in an image?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2007-04-15 16:43
(Received via mailing list)
Dear all,


I am having problems when reading in an image (PS/PDF/TIF):
I need to read in images of these formats, cut them in two and
export them. Unfortunately, using

im=Magick::Image.read(filename).first

produces only images with resolutions of 72x72, which is
too blurry (I need 600x600).
I have tried

im.density="600x600",

and

im.x_resolution=600

im.y_resolution=600

after reading in, and resampling

im.resample(600,600),

but without success. Is there a way to tell Rmagick what the  resolution
is when reading in a file ?

Thank you very much!

Best regards,

Axel
This topic is locked and can not be replied to.