Re: How to reduce pdf file size with open source software?
On Mon, Sep 24, 2007 at 12:34:53AM -0700, Amit Uttamchandani wrote:
> >
> > Sounds good to me, but I'm no image guru.
> >
>
> The only reason I asked was because in Mac OS X, when you click "Save As.." under the "Preview" application (which is a PDF/Image viewer), there is a "Reduce file size..." menu item that drastically reduces pdf file sizes. If I am not mistaken it calls a Python script that automatically does this. I have seen the script before and I just have to look for it now.
>
> I thought there might have been a tool already available in the repos.
This from Sarge:
$ apt-cache search resize image | less
$ apt-cache show python2.3-imaging
Package: python2.3-imaging
Priority: optional
Section: python
Installed-Size: 840
Maintainer: Matthias Urlichs <smurf@debian.org>
Architecture: i386
Source: python-imaging
Version: 1.1.4-3.1
Replaces: pil, python-pil
Depends: python2.3, libc6 (>= 2.3.2.ds1-4), libfreetype6 (>= 2.1.5-1), libjpeg62, zlib1g (>= 1:1.2.1), mime-support | python2.3-imaging-tk
Suggests: python-imaging-doc
Conflicts: pil, python-pil
Filename: pool/main/p/python-imaging/python2.3-imaging_1.1.4-3.1_i386.deb
Size: 233942
MD5sum: 1b89423be9e71f3cdfd39231de402848
SHA1: 9a519af1a066c2d09d6fcbb677cfc66b3dae8041
SHA256: 02988068765614c3c1852ade342e6d546b7510079c62c2f6d1738edc26c5af8a
Description: Python Imaging Library
The Python Imaging Library (PIL) adds an image object to your Python
interpreter. You can load images from a variety of file formats, and
apply a rich set of image operations to them.
.
Image Objects:
o Bilevel, greyscale, palette, true colour (RGB), true colour with
transparency (RGBA).
o colour separation (CMYK).
o Copy, cut, paste operations.
o Flip, transpose, resize, rotate, and arbitrary affine transforms.
o Transparency operations.
o Channel and point operations.
o Colour transforms, including matrix operations.
o Image enhancement, including convolution filters.
.
File Formats:
o Full (Open/Load/Save): BMP, EPS (with ghostscript), GIF, IM, JPEG,
MSP, PDF, PNG, PPM, TIFF, XBM.
o Read only (Open/Load): ARG, CUR, DCX, FLI, FPX, GBR, GD, ICO, IMT, IPTC,
MCIDAS, MPEG, PhotoCD, PCX, PIXAR, PSD, TGA, SGI, SUN, TGA, WMF, XPM.
o Save only: PDF, EPS (without ghostscript).
.
This is the Python 2.3 version of the package.
--
Chris.
======
Reply to: