Specify the units – I seem to remember having a problem when I omitted this option (although DPI should be the default), for example: convert. convert -units PixelsPerInch -size x xc:black -resample 96 The GIF format actually totally ignores/discards the dpi anyway, as you can see diff finds. #resample. As for your screen — measure it! it is typically (these days) 90 to dpi. Remember dpi.

Author: Vilar Gutilar
Country: Angola
Language: English (Spanish)
Genre: Software
Published (Last): 18 September 2011
Pages: 121
PDF File Size: 10.42 Mb
ePub File Size: 7.97 Mb
ISBN: 747-7-34208-861-1
Downloads: 55878
Price: Free* [*Free Regsitration Required]
Uploader: Mazuzilkree

Sign up using Facebook.

Just convert DPI to metric: As such their use is confusing. Now what is the problem here. Did you even understand what I tried to say in my comment?! I needed to put -density before input. With that use normal convert resize:.

Email Required, but never shown. ImageMagick source code and algorithms are discussed here.

A higher DPI will transfer more picture information into the raster format and hence preserve more details from the real original quality. By using our site, you acknowledge that you have read and understand our Imagemaick PolicyPrivacy Policyand our Terms of Service. I added some details now. Timo 4, 17 Loom 1, 2 19 Please let me know what could be the issue.

Charles Boling 2. If you want to print the original 72×72 pixels image as a imagekagick inch wide square, but at dpithen you’ll have to rescale the image in this case scaling it up. I’m not entirely clear in understanding what these requirements mean with respect to a file.


This is new to me. The OP should have chosen the heading: This way we can help to solve the problem. James Waldby – jwpat7 4 Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

Some file formats include a DPI value and others do not. Email Required, but never shown.

Why does ImageMagick always convert to 96 dpi? – Stack Overflow

Select all convert -units PixelsPerInch image -resample resultimage. Convert to dpi Questions and postings pertaining to the usage of ImageMagick regardless of the interface.

That’s the reason why you made this discovery: How can I convert any image to dpi? If you ‘manipulate’ your image with Gimp, and then embed the result in LaTeX, the page looks like you expect it. After trying a lot of things, I think this actually is the command that should be my friend: Sign up or log in Sign up using Google.


That is -density is being dual purposed as both a input setting for images that is created and read in, imagemagikc as image meta-data modifier operator after images have been read in.

Photoshop stores its hints about a desired print or display resolution in a proprietary profile named 8bim. Since ImageMagick is known to be superb and I used it for many other tasks I tried to achieve my goal with this tool. For example, Photoshop uses Photoshop: So what remains is this: Funny enough, the same output comes for input.


Your fatal flaw was covnert initial assumption: The problem is that density is also a ‘input setting’. Yes, I should have paid more attention to the question! It is for this reason that many options such as -label is strictly a input setting only, while -set label is strictly used as a meta-data attribute changing operator! This gives you Post Your Answer Discard By clicking “Post Your Cpi, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

These are the exact requirements for making some documents through electronic imagemagickk. In any case you are creating a bigger image consisting of rows of pixels which are each pixels high x pixels. Kurt Pfeifle 9, 1 35 Home Questions Tags Users Unanswered. You don’t say what you expect your command to do, but I assume you want to resmple to the new dpi setting, in which case you’d need:.