Setting image resolution with Rmagick


Has anyone had success with setting image resolution with Rmagick.

I am resizing an uploaded image with Rmagick, problem is it keeps the
original images resolution and I want to change it to 72dpi.

<<<<<< code example >>>>>>>>>>

these are the various techniques I have tried when and after reading

the file, trying any or all of them does not work.
image_render ={self.density=72}[0]


I also tried this when writing the image to disk

image_render.write(temp_path){self.quality = 90,
self.units=Magick::PixelsPerInchResolution, self.density = 72}

<<<<<< code example : end>>>>>>>>>>

Any thoughts/ideas would be much appreciated

Best regards

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs