You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also having density issues. Trying to output an image at something other than 72 dpi, and nothing seems to work. I've tried self.densityx_resolutiony_resolution and resample and none of them changed the output dpi.
If at least one argument is given to the sample method, its value means scale.
* @overload sample(scale)
* @param scale [Numeric] You can use this argument instead of specifying the desired width and
* height. The percentage size change. For example, 1.25 makes the new image 125% of the size of
* the receiver. The scale factor 0.5 makes the new image 50% of the size of the receiver.
So, image.sample! 100 resize to 10000% size. Looks for me that it is not same with covert command sample.
I'm trying to write some code that will take in an svg, resize it up, and output a png.
source svg file
This works fine using imagemagick's convert command:
But when I use rmagick to do the same thing:
I get pixelation problems
I'm pretty sure the root problem here is that rmagick isn't respecting the density attribute properly.
This issue has appeared in a bunch of places around the web, but I've yet to find a solution that works:
The text was updated successfully, but these errors were encountered: