FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > Web Site & Graphic Design
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-25-2003, 03:47 AM   Postid: 96642
songdog
Site Owner
 
songdog's Avatar

Forum Notability:
83 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Feb 2002
Location: Denver, Colorado
Posts: 865
JPEG compression question

I'm wondering how "intelligent" JPEG compression is...

I have a jpeg image that's currently 14 KB in size. The dimensions are 800 wide by 600 high. I'm using the image as a background to a web page, so I'd like to increase it's dimensions to 1600 by 1200 (twice as wide & twice as high) to avoid having to tile the image within the browser window.

Now, I don't want to actually enlarge anything within the image itself. I want to reflect the original image on both its horizontal and vertical axes, as well as on its lower right corner, in order to yield an image with 4x the original surface area. (I hope I explained that so it makes sense.)

My question: Is jpeg compression "smart" enough to know that I'm simply taking the original image, making 3 copies of it, rotating those copies in various ways, and then "stitching" them all together? In other words, will the resulting jpeg image be 56 KB in size, or closer to the original 14 KB?
__________________
Scott
songdog is offline   Reply With Quote
Old 09-25-2003, 08:10 AM   Postid: 96652
kitchin
Site Owner

Forum Notability:
1163 pts: A True Crowd-pleaser!
[Post Feedback]
 
Join Date: Jan 2001
Location: Virginia
Posts: 2,992
It's probably not so smart. It works in 8 x 8 pixel blocks, if I recall. It's not Flash...

Have you tried a GIF? For some images the GIF is smaller.
kitchin is offline   Reply With Quote
Old 09-25-2003, 08:19 AM   Postid: 96653
doraevon
Site Owner
 
doraevon's Avatar

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Nov 2002
Location: Clermont, FL
Posts: 84
Re: JPEG compression question

Quote:
Originally posted by songdog:
I'm wondering how "intelligent" JPEG compression is...
[... snip ...]
My question: Is jpeg compression "smart" enough to know that I'm simply taking the original image, making 3 copies of it, rotating those copies in various ways, and then "stitching" them all together? In other words, will the resulting jpeg image be 56 KB in size, or closer to the original 14 KB?
The short, simple answer is no, it is not. However, I just did an experiment with an image to see what would happen if I took and image and did what you described (I think I understood what you're trying to do). Result? An image that had 4x the surface area was only about 2x larger. By adjusting the compression level up to around 70%, I was able to reduce the size even further without excessive image degredation. Unfortunately, a level of compression high enough to approach the original image size would result in too much degredation.

If I remember correctly, JPEG processes images in blocks and does some pretty fancy mathmatics to reduce the amount of information stored. But ultimately, it still has to read the entire image and isn't 'smart' in the way I think you were looking for.

In your case, I suspect that a 14KB original image will likely translate into a 25-30KB image after your transformation. Of course, it also depends on the overall complexity of the image. The only way to find out for sure is to experiment.

Doraevon
doraevon is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 07:01 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.