Image PDF Compression

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
prateek

Image PDF Compression

Post by prateek »

Hi all,

I have pdf file which contains mainly images and i want to do the following operations on the file :-

- Contrast Strech 1x1%
- Resize 50%
-Compress Group4

Can it be achived thru ImageMagik?

Thanks...
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Image PDF Compression

Post by fmw42 »

try

convert image.pdf -contrast-stretch 1x1% -resize 50% -compress Group4 resultimage

You don't say what output format. Note, generally for PDF you need to specify a density before reading the image and converting to some other format. Also, very important, IM will rasterize your PDF and then convert back to vector (see http://www.imagemagick.org/Usage/formats/#vector)

If you are new to IM, please see

http://www.imagemagick.org/script/comma ... ptions.php
and
http://www.imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Image PDF Compression

Post by anthony »

Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply