resize file size question

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
armagan

resize file size question

Post by armagan »

I convert a pdf page to gif with density 200. file is 196kb @ 1653x2339 resolution. when I use -resize 1700x2200! the file size is now 469kb. the resized image has less pixels then the original so why is it 250% bigger?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: resize file size question

Post by anthony »

For the final image output -density does nothing in terms of the number of pixels, an image has, it defines in stead how big each pixel is in terms of the real world.

However when converting a vector image to a raster image (input) it does determine the number of pixels as vector images are defined in real-world terms, usally in terms of A4 or letter pages. Do for input it does effect things. To get rid of -density effects
change the -density setting of the image after reading it to say the 72 dots per inch default.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply