Reply to topic  [ 14 posts ] 
Maximising image compression 
Author Message
What's a life?
User avatar

Joined: Thu Apr 23, 2009 8:46 pm
Posts: 10022
Reply with quote
I have to put some new forms on our intranet. The current ones are either word documents or image (TIFF) files. They are in the order of 30-50kB.

The new forms were faxed to us. I've scanned them in and came out with 300dpi TIFF files via the scanner and they're weighing in around 25MB!!!

I've tried:

- greyscale the image
- reduce dpi to 150
- gone for LZW compression when saving as TIFF files.

All of this has brought it down to 6MB which is still too much. Even JPGs can only get the image down to 500kB. Any more ideas on (ideally lossless) compression?

The other scanned forms are in a similar pixel size eg 1200x1700 pixels and 150dpi.

_________________
Image
He fights for the users.


Tue Nov 20, 2012 4:31 pm
Profile
What's a life?
User avatar

Joined: Thu Apr 23, 2009 6:27 pm
Posts: 12251
Reply with quote
Ask the form suppliers to email you PDFs instead. Those should be very small.

Have you scanned them at 8-bit or 16-bit per pixel? Drop down to 8-bit. Also check that your image editing software is saving the TFF using LZW (or similar) compression.

Also, if faxed, there may be a lot of noise in the image that may not be obvious, but will add to the size of the file. Scanning will compound that.

_________________
All the best,
Paul
brataccas wrote:
your posts are just combo chains of funny win

I’m on Twitter, tweeting away... My Photos Random Avatar Explanation


Tue Nov 20, 2012 5:22 pm
Profile
What's a life?
User avatar

Joined: Thu Apr 23, 2009 8:46 pm
Posts: 10022
Reply with quote
Unable to get the original docs but will get the secretaries to have a bash. The forms are NHS referral forms.

I managed to get the images down to below 50kB by doing the above, saving the images and then using the Save As Web option in photoshop to heavily compress the images.

_________________
Image
He fights for the users.


Tue Nov 20, 2012 5:41 pm
Profile
Spends far too much time on here
User avatar

Joined: Fri Apr 24, 2009 8:38 am
Posts: 2967
Location: Dorchester, Dorset
Reply with quote
Scanning as bitmap images would be the way to go on this.

_________________
I've finally invented something that works!

A Mac User.


Tue Nov 20, 2012 6:23 pm
Profile
Doesn't have much of a life
User avatar

Joined: Mon Apr 27, 2009 9:10 pm
Posts: 1057
Reply with quote
Does your scanner not allow the scanning of documents into PDF format?

If not PM me as you could perhaps email them to me at work, I could scan them as PDF's and email them back.

_________________
Image


Tue Nov 20, 2012 9:12 pm
Profile WWW
Doesn't have much of a life
User avatar

Joined: Fri Apr 24, 2009 12:43 pm
Posts: 1798
Location: Manchester
Reply with quote
tombolt wrote:
Scanning as bitmap images would be the way to go on this.

Yep, agreed. As it's already been faxed there are only two colours - black and white. Scanning as greyscale just increases the amount of data as there aren't 256 shades of grey in the original, so it's effectively a bitmap anyway.

_________________
* Steve *

* Witty statement goes here *


Tue Nov 20, 2012 9:59 pm
Profile
What's a life?
User avatar

Joined: Thu Apr 23, 2009 7:56 pm
Posts: 12030
Reply with quote
Faxes need to die.

_________________
www.alexsmall.co.uk

Charlie Brooker wrote:
Windows works for me. But I'd never recommend it to anybody else, ever.


Tue Nov 20, 2012 10:18 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:58 pm
Posts: 8767
Location: behind the sofa
Reply with quote
Generally, I would use Paint or Gimp to re-size the images to something sensible that you can still read easily, perhaps 1000 pixels width. Then save as PNG

PNG is nearly always the best compromise for text.

_________________
jonbwfc's law: "In any forum thread someone will, no matter what the subject, mention Firefly."

When you're feeling too silly for x404, youRwired.net


Tue Nov 20, 2012 10:52 pm
Profile WWW
What's a life?
User avatar

Joined: Thu Apr 23, 2009 6:27 pm
Posts: 12251
Reply with quote
ProfessorF wrote:
Faxes need to die.

+1

_________________
All the best,
Paul
brataccas wrote:
your posts are just combo chains of funny win

I’m on Twitter, tweeting away... My Photos Random Avatar Explanation


Tue Nov 20, 2012 11:13 pm
Profile
Legend

Joined: Sun Apr 26, 2009 12:30 pm
Posts: 45931
Location: Belfast
Reply with quote
ProfessorF wrote:
Faxes need to die.


Not when computers, scanners and software can and will throw a wobbly with something time-dependant :(

_________________
Plain English advice on everything money, purchase and service related:

http://www.moneysavingexpert.com/


Wed Nov 21, 2012 12:05 am
Profile
What's a life?
User avatar

Joined: Thu Apr 23, 2009 8:46 pm
Posts: 10022
Reply with quote
tombolt wrote:
Scanning as bitmap images would be the way to go on this.

I'll have another look at this option.

JohnSheridan wrote:
Does your scanner not allow the scanning of documents into PDF format?

Yes it does. I don't know what the file size would be nor the quality of images but happy to have a go.

ProfessorF wrote:
Faxes need to die.

Except our cancer referrals are done via forms that I print off the intranet, fill in and then fax off to the referral centre.

JJW009 wrote:
Generally, I would use Paint or Gimp to re-size the images to something sensible that you can still read easily, perhaps 1000 pixels width. Then save as PNG

The form, albeit an image, still needs to print full sized on an A4 sheet of paper. It needs to be fairly foolproof as we have technophobes in the building. What I did was decrease the dpi. Certainly saving as 2-colour PNGs made a big difference.

_________________
Image
He fights for the users.


Wed Nov 21, 2012 10:39 am
Profile
What's a life?
User avatar

Joined: Thu Apr 23, 2009 6:27 pm
Posts: 12251
Reply with quote
cloaked_wolf wrote:
tombolt wrote:
Scanning as bitmap images would be the way to go on this.

I'll have another look at this option.

JohnSheridan wrote:
Does your scanner not allow the scanning of documents into PDF format?

Yes it does. I don't know what the file size would be nor the quality of images but happy to have a go.

PDF is just a container. What it will hold are bitmaps (TIFF, PNG or JPEG) to the page size (A4 - likely at 150ppi), and the file size will bloat accordingly.

A PDF, when done properly, will contain the font, the text which will be displayed in that font, and supporting bitmaps and vector line art. If your form was a PDF which contained just the text, the font (or the subset of characters used in the document) and any vector line art, it will be much, much smaller. Scanning to PDF would only work satisfactorily if your scanner software was clever with OCR and discarded the bitmap when it was finished. Otherwise, yes, you will get huge file and, yes, you will, have to compromise on legibility if you wanted to keep the file size down. Scanning to PDF is like taking a screen shot and embedding it in a spreadsheet.

_________________
All the best,
Paul
brataccas wrote:
your posts are just combo chains of funny win

I’m on Twitter, tweeting away... My Photos Random Avatar Explanation


Wed Nov 21, 2012 1:08 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:58 pm
Posts: 8767
Location: behind the sofa
Reply with quote
PDF does have the advantage of being idiot proof. I'd often embed the PNG image into one, so it printed A4 with no effort at the receiving end.

_________________
jonbwfc's law: "In any forum thread someone will, no matter what the subject, mention Firefly."

When you're feeling too silly for x404, youRwired.net


Wed Nov 21, 2012 2:13 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 5288
Location: ln -s /London ~
Reply with quote
JJW009 wrote:
PDF does have the advantage of being idiot proof. I'd often embed the PNG image into one, so it printed A4 with no effort at the receiving end.

Same here. It's just that a file is not smaller by virtue of being a PDF. You still have to compress the image t before wrapping it in a nice warm fuzzy idiot proof jacket (With velcro, as opposed to a zip or buttons) though.

_________________
timark_uk wrote:
Gay sex is better than no sex

timark_uk wrote:
Edward Armitage is Awesome. Yes, that's right. Awesome with a A.


Wed Nov 21, 2012 2:24 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ] 

Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.