Go Back   Serif Software Forums > Photos and Movies > PhotoPlus

Notices

PhotoPlus Questions about using PhotoPlus for photo editing

Reply
 
Thread Tools Display Modes
Old 11th August 2012, 01:58 AM   #1
dslrbrain
Member
 
dslrbrain's Avatar
 
Join Date: Oct 2011
Posts: 49
dslrbrain is on a distinguished road
Question photo size

sometimes i start processing of RAW file of 15MB and i end with a jpg file of 600KB ...any explanation
dslrbrain is offline   Reply With Quote
Old 11th August 2012, 02:33 AM   #2
dwalby
Member
 
Join Date: Feb 2012
Posts: 27
dwalby is on a distinguished road
Default Re: photo size

Quote:
Originally Posted by dslrbrain View Post
sometimes i start processing of RAW file of 15MB and i end with a jpg file of 600KB ...any explanation
1. resizing to a smaller number of pixels
2. saving at a low JPEG quality setting
3. an image with large amounts of similar colors, like blue sky with no clouds, etc. (this will compress much more than one with random coloration and result in a smaller JPG file)
4. using "save for Web" save option
dwalby is offline   Reply With Quote
Old 11th August 2012, 04:04 AM   #3
Bhikkhu Pesala
Master
 
Bhikkhu Pesala's Avatar
 
Join Date: Feb 2009
Location: East London, UK
Posts: 13,790
Bhikkhu Pesala is a glorious beacon of lightBhikkhu Pesala is a glorious beacon of light
Default Re: photo size

Not surprising at all — I just saved a NEF file of 5 Mbytes to JPG using IrfanView with a quality setting of 75 and the JPG file was only 208 Kbytes.

That's why the JPG format is popular — it compresses files efficiently with very little loss of detail.
__________________
SupportFree Serif SoftwarePagePlus ReviewIrfanView HelpMy FontsSerif FontsUploadsDownloads
Help: DPX5PPX5 PhPX5WPX6 • AMD64 3500 • 1Gb RAM • 1280x1024 • Windows XP Home SP3 • Edit
Bhikkhu Pesala is offline   Reply With Quote
Old 11th August 2012, 03:35 PM   #4
dslrbrain
Member
 
dslrbrain's Avatar
 
Join Date: Oct 2011
Posts: 49
dslrbrain is on a distinguished road
Default Re: photo size

I think that was related to " an image with large amounts of similar colors "
Thanx for you all
dslrbrain is offline   Reply With Quote
Old 12th August 2012, 12:32 AM   #5
colin_e
Regular Member
 
Join Date: Sep 2010
Posts: 69
colin_e is well on the road to greatness
Default Re: photo size

Quote:
Originally Posted by dslrbrain View Post
I think that was related to " an image with large amounts of similar colors "
Thanx for you all
No, simpler compression schemes (generally up to 8 bit, ie. 256 colours) work that way. JPEG if more advanced, it's more like a 2-D Fourier transform, so it's more the high frequency content of the image (complex patterns and sharp edges) that drive up the size of a JPEG. These are also the things that JPEG compression tends to degrade at low quality levels, more natural photos have smooth colour transitions and JPEG is ideally suited to that kind of image.

Regards: colin_e
colin_e is offline   Reply With Quote
Old 12th August 2012, 01:12 AM   #6
dslrbrain
Member
 
dslrbrain's Avatar
 
Join Date: Oct 2011
Posts: 49
dslrbrain is on a distinguished road
Default Re: photo size

Quote:
Originally Posted by colin_e View Post
No, simpler compression schemes (generally up to 8 bit, ie. 256 colours) work that way. JPEG if more advanced, it's more like a 2-D Fourier transform, so it's more the high frequency content of the image (complex patterns and sharp edges) that drive up the size of a JPEG. These are also the things that JPEG compression tends to degrade at low quality levels, more natural photos have smooth colour transitions and JPEG is ideally suited to that kind of image.

Regards: colin_e
Sorry I don't understand !

dslrbrain is offline   Reply With Quote
Old 12th August 2012, 11:56 AM   #7
colin_e
Regular Member
 
Join Date: Sep 2010
Posts: 69
colin_e is well on the road to greatness
Default Re: photo size

Quote:
Originally Posted by dslrbrain View Post
Sorry I don't understand !

Wow, tough stuff to explain, especially because i'm neither an expert nor a mathematician!

All I think i can say is something along the lines of-
  1. Because fast memory used to be so expensive, early computer displays were based on colour "lookup tables". Each dot on the screen stored a number, say 0-15 or 0-255, and then that number was "looked up" to see what colour to display for that pixel. With this type of display you have a lot fewer possible colours (say 255) than dots on the screen (maybe a million+) so it is possible to design compression schemes that take advantage of this fact. "Runlength encoding" is one that only really works for images with blocks of constant colour (e.g. a graph from a spreadsheet, or a cartoon). The GIF compression scheme is more general, but only work on images of up to 256 colours (i.e. a lookup table type image) and still works best on images predominantly made up of a small number of colours.
  2. Modern computer displays, camera sensors, and image file formats typically use an 8 bit number (0-255) for the red, green and blue (RGB) component of every dot on the screen, that's 16 million possible colours for ANY dot. That means, in theory, every dot (pixel) in an image could be a differnt colour. On that basis compression schemes that look for similar colours and sort them into groups aren't going to work.
  3. Instead, schemes like JPEG look at the frequency components of an image. Think about it- describing an image that was just a big block of one colour (say blue) would be very simple, no matter how big (in pixels) the image was, a single colour block image compresses very easily, the more the colours vary, the more information you need to describe the image. Real world images tend to be made up of smoothly varying colours and shapes rather than sharp edges. For one dimensional signals (something like a radio wave) the Fourier transform describes the wave by breaking it down into it's sine wave frequency components. In the process the Fourier transform is a greatly compressed description of the original signal. JPEG is based on a Discrete Cosine Transform (DCT) that does something similar, but in two dimensions, and using the cosine function rather than the sine. It analyses the colour of areas of the image, and then the frequency distrbution of how the colours vary in the X and Y directions. Hence JPEG does a great job on images with smoothly varying colours, like photos of people, animals etc. It's not so great on "un-natural" blocks of sharp colour changes because these have lots of high frequency non-repeating colour change components so they don't compress well. JPEG is "lossy", it actually throws away some high frequency data, more as you reduce the quality setting, so you'll find JPEG a poor solution for compressing images containing things like Excel graphs or text because after compression the resulting image will ofthen have changes (compression artifacts) that are noticeable.

Sorry that doesn't actually explain how it works, but to be honest that's well beyond my level of knowledge and mathematical ability. As very few of us can really grasp the maths, we are best to stick to a simple set of guidelines-
  • Non-photographic images up to 256 colours- Use GIF or 4 or 8 bit PNG (GIF is actually a proprietary format, although most of uis ignore that).
  • Photographic "real world" images with any number of colours- Use JPEG (maybe JPEG2000 in future).
  • Computer-generated images with blocks of flat colour and/or text that you don't want corrupted by the compression process- Use PNG, TIFF, or the many non-compressed formats like BMP.

I hope that helps a bit. If you want to know more there are a million papers describing compression schemes on the web, but most are heavy on the maths, it's the nature of the subject i'm afraid.

Reagrds: colin_e
colin_e is offline   Reply With Quote
Old 12th August 2012, 07:10 PM   #8
dslrbrain
Member
 
dslrbrain's Avatar
 
Join Date: Oct 2011
Posts: 49
dslrbrain is on a distinguished road
Default Re: photo size

Quote:
Originally Posted by colin_e View Post
I hope that helps a bit. If you want to know more there are a million papers describing compression schemes on the web, but most are heavy on the maths, it's the nature of the subject i'm afraid.

Reagrds: colin_e
Thank you very much indeed for this explanation and information
dslrbrain is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
crop photo with size and DPI madhav PhotoPlus 4 16th June 2012 09:36 AM
WebPlus X4: Size of photo in web page sheik WebPlus 7 29th November 2010 10:39 AM
MoviePlus X3: What size still photo for import? Henry MoviePlus 7 26th October 2010 09:55 AM
WebPlus X2: Photo file size Joe Mirsky WebPlus 5 25th February 2009 08:42 PM
Best Photo Gallery pix size Danzil WebPlus 6 11th April 2008 05:55 AM


All times are GMT +1. The time now is 03:32 AM.