PowerBASIC Forums
  PowerBASIC for Windows
  Compress .jpg files for emailing

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Compress .jpg files for emailing
mark pruitt
Member
posted May 12, 2003 09:18 AM     Click Here to See the Profile for mark pruitt     Edit/Delete Message   Reply w/Quote
Hey folks, I need to tap the collective knowledge of the community for some information.

I use a Sony Mavica CD250 digital camera, which stores pictures on mini CD's in .jpg
format. Once the CD is finalized, all I need to do with the images is to email them. My
problem is the pictures need to be large in size and have high resolution, so many of
them are around 950k in size .

My goal is to reduce the size of the images to speed up the emailing process . Winzip
doesn't take much of a bite out of the file size, and every application I've found
on the internet for compressing .jpg files is extreme overkill or inefficient.

At this point, it doesn't matter how I make the images smaller (compressing, converting to
another format, etc). The person(s) who receive the pictures are simply going to open them
for their own analysis, and it really doesn't matter to them what file size or format they are,
only that they retain their size (roughly 1600 x 1200 pixels) and resolution.

Thanks in advance for the help!

------------------
Mark Pruitt
markspruitt@yahoo.com

[This message has been edited by mark pruitt (edited May 12, 2003).]

IP: Logged

Mark Smit
Member
posted May 12, 2003 10:25 AM     Click Here to See the Profile for Mark Smit     Edit/Delete Message   Reply w/Quote
Hello Mark,

This is just a thought, why not setup your own custom web server for your clients to download from. The web server really wouldn't need all the bells and horns that the others have. I did something like this last year some time so a friend could download some maps for a game we played. You could make a really quick and dirty version that strips all the useless junk from the browser request and just focus on the GET [filename] portion. You would then only email the links to your server and the files to the client, you could even add some special strings in the link for added security. If you want I could maybe find my little project and send it to you Other than that I'm not sure what else you could do to make these images smaller. Image compression and data compression in general seems to be a thorn in the side for us programers

------------------
Stay where ya from, we'll come where ya to.

IP: Logged

George Bleck
Member
posted May 12, 2003 11:27 AM     Click Here to See the Profile for George Bleck     Edit/Delete Message   Reply w/Quote
Mark,

JPG files are already compressed. Otherwise they'd be uncompressed
bitmap files.

Winzip and the like will get you very little (if any) additional
compression on an already compressed file.

What you could do is change the compression quality on the images.
This will allow them to shrink in disk size while maintaining the
dimensions. Only drawback is loss of quality.

------------------
Every day I try to learn one thing new,
but new things to learn are increasing exponentially.
At this rate I’m becoming an idiot faster and faster !!!
------------------
George W. Bleck
Lead Computer Systems Engineer
KeySpan Corporation
My Email

IP: Logged

mark pruitt
Member
posted May 12, 2003 11:27 AM     Click Here to See the Profile for mark pruitt     Edit/Delete Message   Reply w/Quote
Hey Mark, if you can find your project information I'd like to take a look at
it. I have an old Compaq LTE 5280 that I've been planning to convert into a
Linux server anyway. You can use the email address of markspruitt@yahoo.com

I wasn't thinking about a multipart solution. However, if I can find a way to
reduce the size of the files some (not unusual to have 40mb to 60 mb of photos,
and even over DSL it gets pretty painful), and let the users download them, that
will still work!

------------------
Mark Pruitt
markspruitt@yahoo.com

IP: Logged

Eric Pearson
Member
posted May 12, 2003 11:49 AM     Click Here to See the Profile for Eric Pearson     Edit/Delete Message   Reply w/Quote
Mark --

> it really doesn't matter to them what file size
> or format they are, only that they retain their
> size (roughly 1600 x 1200 pixels) and resolution.

That's called "lossless compression", i.e. no information is lost. Any ZIP compressor will do that for you. The problem is that, as George pointed out, JPEG files are already compressed. So ZIP (et al) won't do much for you -- if anything -- in most cases.

JPEG is really a compression format not an image format. It's simply a compression format that has been optimized for certain types of images.

So about your only options are to 1) use zipped bitmaps and see if they are smaller than the JPEGs, or 2) tell your JPEG-creation program to create smaller files, but because JPEG is a "lossy compression" technique, that always involves an additional loss of quality (resolution). Even a top-quality (100-quality) JPEG file will be of lower quality than the original bitmap. Always.

Depending on the image contents it's very possible that GIF files will produce acceptable quality and smaller files. But then you get into licensing issues, because GIF is owned by a company which requires you to pay royalties if you sell a program which uses GIF compression.

HTH.

-- Eric

------------------
Perfect Sync Development Tools
Perfect Sync Web Site
Contact Us: support@perfectsync.com

[This message has been edited by Eric Pearson (edited May 12, 2003).]

IP: Logged

David Gwillim
Member
posted May 12, 2003 02:12 PM     Click Here to See the Profile for David Gwillim     Edit/Delete Message   Reply w/Quote
I don't know anything about this company, but their products look interesting.

Loss-less image compression tools.
http://www.bitjazz.com/

Dave

IP: Logged

All times are EasternTime (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | PowerBASIC BASIC Compilers

Copyright © 1999-2007 PowerBASIC, Inc. All Rights Reserved.


Ultimate Bulletin Board 5.45c