How to create small PDF files?
Moderator: kcleung
-
- Posts: 5
- Joined: Sat Jul 19, 2008 8:59 am
How to create small PDF files?
hanks for uploading the Beethoven Piano Concert No. 2. your PDF files are really small! Just over 1MB for 26 pages (first movement). How did you scan and compress the scores and how did you fit them into pdf?
I followed
http://imslp.org/wiki/IMSLP:Scanning_music_scores
and scanned a 100-page score with each page as a 600x600 black and white (no grayscale) tiff file. Then I concatenate all tiffs into a single tiff file with CCITT Group 4 compression by:
tiffcp -c g4 *.tiff output.tiff
Finally I convert the concatenated tiff file into pdf by:
tiff2pdf output.tiff > output.pdf
However the resultant pdf file is 22MB!
Thanks!
I followed
http://imslp.org/wiki/IMSLP:Scanning_music_scores
and scanned a 100-page score with each page as a 600x600 black and white (no grayscale) tiff file. Then I concatenate all tiffs into a single tiff file with CCITT Group 4 compression by:
tiffcp -c g4 *.tiff output.tiff
Finally I convert the concatenated tiff file into pdf by:
tiff2pdf output.tiff > output.pdf
However the resultant pdf file is 22MB!
Thanks!
-
- Posts: 5
- Joined: Sat Jul 19, 2008 8:59 am
-
- Posts: 5
- Joined: Sat Jul 19, 2008 8:59 am
I'm in the process of re-writing the scanning page. 600dpi isn't necessarily the best minimum sampling rate. 300 will be fine in most cases if your score is not a miniature or pocket score. Always scan in black & white/monochrome/1-bit color mode and adjust the threshold so that no black artifacts appear around the rims of the paper or no "salt and pepper" effect occurs throughout.
Like Daphnis says, it does depend on the score, but when in doubt I would prefer 600dpi as a safe bet. The reason I say this is because 600dpi scans can be downsampled to 300dpi without quality loss, whereas the reverse is obviously not true. Piano A4 scores should be fine at 300dpi, but some orchestral A4 scores might need 600dpi (depends very much on the size of the notes, text, etc).
So the short answer is, yes, 200-250kb/page is large but acceptable. However, if the score is long you might want to break it up into movements.
So the short answer is, yes, 200-250kb/page is large but acceptable. However, if the score is long you might want to break it up into movements.
-
- active poster
- Posts: 201
- Joined: Wed Aug 15, 2007 11:24 pm
To convert to ccitt by gimp ,but I think by all program ,your ima ge must be indexed and reduced to 2 color
http://docs.gimp.org/en/gimp-images-out.html
You can open/convert a set of image in gimp by " david's batch plug in"
http://docs.gimp.org/en/gimp-images-out.html
You can open/convert a set of image in gimp by " david's batch plug in"
-
- Posts: 12
- Joined: Sun Oct 12, 2008 7:37 pm
For b/w I use png. The whole pdf will be a little slow to open, but PNG is loseless, and it is the best when you need highest b/w quality in the smallest space.
I only scan at 600 dpi because even if it's slow, if you have a 600 dpi image you can downsample it, if you have a 300 dpi image, expecially old scores or photocopies, it's impossible to recover quality if after 500 pages you find out there is some imperfection!
I only scan at 600 dpi because even if it's slow, if you have a 600 dpi image you can downsample it, if you have a 300 dpi image, expecially old scores or photocopies, it's impossible to recover quality if after 500 pages you find out there is some imperfection!
-
- Groundskeeper
- Posts: 553
- Joined: Fri Feb 16, 2007 8:55 am
Sorry to contradict you, but CCITT group 4 is more efficient on monochrome (1-bit) files than PNG, and it is lossless as well.j077y_r0g3r wrote:For b/w I use png. The whole pdf will be a little slow to open, but PNG is loseless, and it is the best when you need highest b/w quality in the smallest space.
-
- Posts: 12
- Joined: Sun Oct 12, 2008 7:37 pm