![]() Note that you can use Exiftool to read out resolutions. I am also open to other automated solutions which are easily done on a Linux system. Am I getting something completely wrong? I can’t be that wrong since everything works just fine with GIMP. Also when I open the image with GIMP again the DPI values are set to 72 instead of 300. so this might be the wrong parameters to watch?)īut when I now render my TeX with pdflatex the image is still big and blurry. (Funny enough, the same output comes for input.png which confuses me. When I use this command, it seems like it did what I wanted: identify -verbose output.png | grep 300 Output.png: PNG image data, 611 x 453, 8-bit grayscale, non-interlaced Input.png: PNG image data, 611 x 453, 8-bit grayscale, non-interlaced ![]() When I check the file it stays the same (EDIT: which is what I expect, as explained above). This should set the DPI to 300, as I can read everywhere in the web. But it does just not do what I want.Īfter trying a lot of things, I think this actually is the command that should be my friend: convert input.png -density 300 output.png Since ImageMagick is known to be superb and I used it for many other tasks I tried to achieve my goal with this tool. What I am trying to do is to automate the process of going into GIMP and adjusting the DPI values. The images will appear smaller in the resulting PDF but with high printing quality. When I’m doing the above process with GIMP manually everything works just fine. ![]() I am often doing that when I am working with LaTeX, or to be exact with the command pdflatex on a recent Ubuntu-Machine. 300 this has the effect that the image stays the same on the computer, but if I print it, it will be smaller if you look at it, but all the details are still there, just smaller -> it has a higher resolution on the printed paper (but smaller size. Ok, the values there are often 72 by default. (In German the dialog is Bild -> Druckgröße and there X-Auflösung and Y-Auflösung) ![]() You can also choose the format which by default is Pixel/Inch. I’m talking about going to Picture -> PrintingSize and then adjusting the Values X-Resolution and Y-Resolution which are known to me as so called DPI values. I only have the German dialog installed but I’ll try to translate it. When and where possible this will scale your images to 960 by 528 pixels, but will preserve the aspect ratio of those images that won’t scale to these dimensions exactly.In GIMP there is a very simple way to do what I want. Perhaps you have a height and width you are aiming for, but want to preserve the aspect ratio. This will scale all of your images to a width of 960 pixels, the height will be scaled accordingly, preserving the aspect ratio. Perhaps the height isn’t as important as the width. png files in your directory to a size of 960 pixels by 528 pixels. Place all the images you want to scale in a directory and navigate to that location via command line. You’re in luck! With the ImageMagick -resize option, you can quickly and easily batch scale those images to a manageable size. The last thing you want to do is resize them manually. Unfortunately, this gives you a Pictures directory filled with massive images not optimized for uploading to, and displaying on, a web page. Let’s say you’re writing a series of Blender tutorials and you’re using PrintScreen to grab screen shots.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |