Re: How to reduce pdf file size with open source software?
Yes I think you are right. python-imaging is the package mac os x uses to resize images and pdf. Thanks! -- Amit Uttamchandani [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
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 [EMAIL PROTECTED] 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. == -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to reduce pdf file size with open source software?
IIUC, a pdf made out of an image will just be some kind of wrapper around the image (assuming you haven't first converted the image to text via OCR). How big was the original .png? You should probably resize that rather than the enclosing .pdf. Why do you even want to convert the png to pdf? Thanks for the quick response. You are right, the pdf is just a wrapper around the image file. The size of the png image is around 1.6 mb, the pdf file is around the same size as well. This is for a hw assignment and the prof. only accepts files in pdf format. When using the convert command, the png image is automatically converted to an 8.5 by 11 sized pdf document. I guess I'll have to reduce the size of the png image first and then convert it as pdf? -- Amit Uttamchandani [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to reduce pdf file size with open source software?
On Mon, 24 Sep 2007 00:15:46 -0700 Amit Uttamchandani [EMAIL PROTECTED] wrote: IIUC, a pdf made out of an image will just be some kind of wrapper around the image (assuming you haven't first converted the image to text via OCR). How big was the original .png? You should probably resize that rather than the enclosing .pdf. Why do you even want to convert the png to pdf? Thanks for the quick response. You are right, the pdf is just a wrapper around the image file. The size of the png image is around 1.6 mb, the pdf file is around the same size as well. This is for a hw assignment and the prof. only accepts files in pdf format. When using the convert command, the png image is automatically converted to an 8.5 by 11 sized pdf document. I guess I'll have to reduce the size of the png image first and then convert it as pdf? Sounds good to me, but I'm no image guru. Amit Uttamchandani [EMAIL PROTECTED] Celejar -- mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to reduce pdf file size with open source software?
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. Thanks again. -- Amit Uttamchandani [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to reduce pdf file size with open source software?
On 09/24/2007 12:37 AM, Amit Uttamchandani wrote: [...] However, the pdf file sizes were around 1.6MB each. At this point, I I couldn't figure out how to reduce the file size. I searched the aptitude repositories and google but I couldn't find a proper solution. [...] I know that PDF supports a compression scheme. Search the Internet for PDF compression. Ghostscript might support the desired compression scheme. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to reduce pdf file size with open source software?
On Mon, 24 Sep 2007 00:34:53 -0700 Amit Uttamchandani [EMAIL PROTECTED] 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. There may be; I just don't know. Good luck! Thanks again. You're welcome! Amit Uttamchandani [EMAIL PROTECTED] Celejar -- mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to reduce pdf file size with open source software?
What kind of pictures do you have? Are they complex scene like pictures or simple pattern based chart? You could try to convert them to JPG by using low compression ratio and decrease resolution if possible. In addition, it would be better you import those pictures into OOo Writer and then export as PDFs. In the options of exporting PDF popup window, there is an option of adjusting quality and DPI of target PDF files. On Mon, 2007-09-24 at 02:40 -0500, Mumia W.. wrote: On 09/24/2007 12:37 AM, Amit Uttamchandani wrote: [...] However, the pdf file sizes were around 1.6MB each. At this point, I I couldn't figure out how to reduce the file size. I searched the aptitude repositories and google but I couldn't find a proper solution. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to reduce pdf file size with open source software?
On 09/24/2007 09:49 AM, Wei Wang wrote: What kind of pictures do you have? Are they complex scene like pictures or simple pattern based chart? You could try to convert them to JPG by using low compression ratio and decrease resolution if possible. In addition, it would be better you import those pictures into OOo Writer and then export as PDFs. In the options of exporting PDF popup window, there is an option of adjusting quality and DPI of target PDF files. On Mon, 2007-09-24 at 02:40 -0500, Mumia W.. wrote: On 09/24/2007 12:37 AM, Amit Uttamchandani wrote: [...] However, the pdf file sizes were around 1.6MB each. At this point, I I couldn't figure out how to reduce the file size. I searched the aptitude repositories and google but I couldn't find a proper solution. Here's how I just handled a similar challenge. This is a real Rube Goldberg solution, but it worked... My wife handed me an OOo page saved as an 8.4 Mb .doc file with 8 X 1Mb embedded images sized to fit on the page with some text. She asked me to put that up on her web page, but clearly there had to be a better way to a) create such a page using scaled images, and b) upload it so it would be accessible as smaller download. After trying with little success to print or export the page to pdf (file size still too big), I took a screen shot! Bingo, success. I used imagemagick ($ import foo.jpg). New file: 125kb. Hope this may help, Ralph -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to reduce pdf file size with open source software?
Wei Wang wrote: What kind of pictures do you have? Are they complex scene like pictures or simple pattern based chart? You could try to convert them to JPG by using low compression ratio and decrease resolution if possible. In addition, it would be better you import those pictures into OOo Writer and then export as PDFs. In the options of exporting PDF popup window, there is an option of adjusting quality and DPI of target PDF files. On Mon, 2007-09-24 at 02:40 -0500, Mumia W.. wrote: On 09/24/2007 12:37 AM, Amit Uttamchandani wrote: [...] However, the pdf file sizes were around 1.6MB each. At this point, I I couldn't figure out how to reduce the file size. I searched the aptitude repositories and google but I couldn't find a proper solution. Try Scribus (or scribus-ng). You can compose the whole document using the png images and then create one pdf (or per page pdf too?). There is also an option of the type of compression to use for images while making the pdf. But the first thing you need to make sure is that the images itself are of optimal resolution for your task at hand. HTH, /KS -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to reduce pdf file size with open source software?
On Mon, Sep 24, 2007 at 03:08:26PM -0400, Ralph Katz wrote: On 09/24/2007 09:49 AM, Wei Wang wrote: What kind of pictures do you have? Are they complex scene like pictures or simple pattern based chart? You could try to convert them to JPG by using low compression ratio and decrease resolution if possible. In addition, it would be better you import those pictures into OOo Writer and then export as PDFs. In the options of exporting PDF popup window, there is an option of adjusting quality and DPI of target PDF files. On Mon, 2007-09-24 at 02:40 -0500, Mumia W.. wrote: On 09/24/2007 12:37 AM, Amit Uttamchandani wrote: [...] However, the pdf file sizes were around 1.6MB each. At this point, I I couldn't figure out how to reduce the file size. I searched the aptitude repositories and google but I couldn't find a proper solution. Here's how I just handled a similar challenge. This is a real Rube Goldberg solution, but it worked... My wife handed me an OOo page saved as an 8.4 Mb .doc file with 8 X 1Mb embedded images sized to fit on the page with some text. wandering OT here, but use convert to resize the pictures so that they are the proper size. Then they don't need to be resized within the document. A 1mb image is pretty big at its native resolution, the object is to get it sized so that no resizing within the document is required. Then the attached images will be as small as they can be and still look good. Of course, .doc is not really a great way to put something up on the web anyway, but that's a different story and I'm surely not telling you anything you don't already know. A -- current song: Weezer - Jamie/DGC Rarities Version signature.asc Description: Digital signature
Re: How to reduce pdf file size with open source software?
On Sun, Sep 23, 2007 at 10:37:10PM -0700, Amit Uttamchandani wrote: Hey guys, I am currently using Etch and I'm loving it! Today I had to scan several documents from a Windows machine (not a good experience). The output files were of png format. I then transferred these files into Debian and used ImageMagick's convert utility to convert the png images into pdf. However, the pdf file sizes were around 1.6MB each. At this point, I I couldn't figure out how to reduce the file size. I searched the aptitude repositories and google but I couldn't find a proper solution. In the end, I had to transfer the files to Mac OS X and use Preview to reduce the image size. How is this done in debian? I am sure there are utilities out there but I just couldn't find them. Thank you! After having read most of the current thread, you did this: windows program: a document-scanner-png linux program: png-pdf what types of documents are you scanning? are they 'art pictures' or 'drawings' or are they 'written text'? Have you tried to get the scanner working in Gnu/Linux? If you are trying to create a math paper that needs 'complex math symbols', they you should consider (latex,tetex,texlive). You can also use tex to produce pdf files and include graphics files in those. -Kev -- | .''`. == Debian GNU/Linux == | my web site: | | : :' : The Universal |mysite.verizon.net/kevin.mark/| | `. `' Operating System| go to counter.li.org and | | `-http://www.debian.org/ |be counted! #238656 | | my keyserver: subkeys.pgp.net | my NPO: cfsg.org | |join the new debian-community.org to help Debian! | |___ Unless I ask to be CCd, assume I am subscribed ___| -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Scaling images in docs [was Re: How to reduce pdf file size with open source software?]
On 09/24/2007 03:14 PM, Andrew Sackville-West wrote: wandering OT here, but use convert to resize the pictures so that they are the proper size. Then they don't need to be resized within the document. A 1mb image is pretty big at its native resolution, the object is to get it sized so that no resizing within the document is required. Then the attached images will be as small as they can be and still look good. Of course, .doc is not really a great way to put something up on the web anyway, but that's a different story and I'm surely not telling you anything you don't already know. Hi Andrew -- Of course you're correct about $ convert, but let me tell you... Not wanting to re-do her work (if you're married, you'll catch my drift), taking a quick screen shot and posting the whole page as a 125 kb jpeg on the web was a nice quick dirty solution. Thanks for reminding me about convert. Ralph -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Scaling images in docs [was Re: How to reduce pdf file size with open source software?]
On Mon, Sep 24, 2007 at 05:11:01PM -0400, Ralph Katz wrote: On 09/24/2007 03:14 PM, Andrew Sackville-West wrote: wandering OT here, but use convert to resize the pictures so that they are the proper size. Then they don't need to be resized within the document. A 1mb image is pretty big at its native resolution, the object is to get it sized so that no resizing within the document is required. Then the attached images will be as small as they can be and still look good. Of course, .doc is not really a great way to put something up on the web anyway, but that's a different story and I'm surely not telling you anything you don't already know. Hi Andrew -- Of course you're correct about $ convert, but let me tell you... Not wanting to re-do her work (if you're married, you'll catch my drift), taking a quick screen shot and posting the whole page as a 125 kb jpeg on the web was a nice quick dirty solution. Thanks for reminding me about convert. trust me, I fully understand your situation. :) A -- current song: Ice-T - You Played Yourself signature.asc Description: Digital signature
Re: Scaling images in docs [was Re: How to reduce pdf file size with open source software?]
On Mon, Sep 24, 2007 at 02:19:08PM -0700, Andrew Sackville-West wrote: Hi Andrew -- Of course you're correct about $ convert, but let me tell you... Not wanting to re-do her work (if you're married, you'll catch my drift), taking a quick screen shot and posting the whole page as a 125 kb jpeg on the web was a nice quick dirty solution. Thanks for reminding me about convert. trust me, I fully understand your situation. :) One doesn't need to be married to understand it :) Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) signature.asc Description: Digital signature
Re: How to reduce pdf file size with open source software?
Thank you for taking the time to reply. After having read most of the current thread, you did this: windows program: a document-scanner-png linux program: png-pdf Yes that is correct what types of documents are you scanning? are they 'art pictures' or 'drawings' or are they 'written text'? They are written text but composed of mostly math equations and quick, drawn out graphs. Have you tried to get the scanner working in Gnu/Linux? No option here, I use the scanner located in the computer lab on campus. If you are trying to create a math paper that needs 'complex math symbols', they you should consider (latex,tetex,texlive). You can also use tex to produce pdf files and include graphics files in those. Yes, I use latex quite often but I did not want to spend a lot of time typing up all those equations and plots. I just worked them out on paper and sent them of the professor. -- Amit Uttamchandani [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to reduce pdf file size with open source software?
On Sun, 23 Sep 2007 22:37:10 -0700 Amit Uttamchandani [EMAIL PROTECTED] wrote: Hey guys, I am currently using Etch and I'm loving it! Today I had to scan several documents from a Windows machine (not a good experience). The output files were of png format. I then transferred these files into Debian and used ImageMagick's convert utility to convert the png images into pdf. However, the pdf file sizes were around 1.6MB each. At this point, I I couldn't figure out how to reduce the file size. I searched the aptitude repositories and google but I couldn't find a proper solution. In the end, I had to transfer the files to Mac OS X and use Preview to reduce the image size. How is this done in debian? I am sure there are utilities out there but I just couldn't find them. Thank you! IIUC, a pdf made out of an image will just be some kind of wrapper around the image (assuming you haven't first converted the image to text via OCR). How big was the original .png? You should probably resize that rather than the enclosing .pdf. Why do you even want to convert the png to pdf? Amit Uttamchandani [EMAIL PROTECTED] Celejar -- mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]