Glamour Photography, Glamour Models, Glamour Forums, Digital Photos, Digital Photography, Beauty, Nude, Models, Photography, Photographers, Photos
Glamour 1ª Glamour Models, Photographers, Photo Tips, Digital Cameras

Glamour 1™ is loaded with great photographers and models portfolios, forums, photography tips, workshop info and much more than a typical portfolio site. These valuable services increases traffic and operating costs and those that support our community of models and photographers by upgrading their accounts as a Lifetime Member (pay only once, never pay again) enjoy practically no advertising--upgrade now to increase your viewing pleasure while supporting this community and family of glamour photographers and models.

Don't want to see this message or large ads, register, then upgrade now!



Home     |     Chat   |   Forums   |   Games   |   Today's Posts   |   Photo Tips   |   Photos   |   Search Members ]   |   Register

Go Back   Glamour 1™ Putting the Glamour Back in Photography! :.. Glamour 1 Main Photo Forums :.. Articles
Glamour, Beauty, Nude Workshops
Orlando, Atlanta, Philly,
Chicago, San Antonio, Dallas,

Virgin Islands, Virginia Beach
Posing Book here!
Big Event Here!
Articles A forum for articles on photography & modeling.
Comment
 
LinkBack Article Tools Display Modes
<!-- google_ad_section_start -->The Alpha JPG - Compression Magic<!-- google_ad_section_end -->
The Alpha JPG - Compression Magic
Published by R_Fredrick_Smith
01-02-2007
Post The Alpha JPG - Compression Magic

Suppose you want to post a photo with maximum detail and beauty, but at the same time you want to reduce its file size (for bandwidth reasons). Most people are satisfied to get the size reduction that comes from using Photoshop's Save for Web feature. This does an excellent job, but when properly used, it can do far more. The purpose of this article is to show you the "far more".

To complete this mini-tutorial, I will first show you the image I'm going to work with and make some comments about its size. The model is Holley Dorrough.


Image 1: Save for Web - JPG - Very High


Image 2: Save for Web - JPG - High


Image 2: Save for Web - JPG - Medium


Image 2: Save for Web - JPG - Low

As you examine these four images you will note that they are all the same pixel size. But check out the file sizes. Here is what you'll see:
  • Image 1 = 120,493
  • Image 2 = 72,221
  • Image 3 = 37,732
  • Image 4 = 24,660
I think most of you will agree that Image 4 is not really very usable. However the other three images are usable with #2 and #1 being the best. To really get a feel for the differences in the first three, take a look at the text at the bottom.

So each time you use Save for Web, you must examine the array of choices you have and try to choose the one that shows your image off in the best way. Having come this far, let's see how we can use a little magic that's hidden within the Save for Web option to reduce any one of the above Images to a smaller file size, but at the same time, the most important part of the image (Holley) will stay exactly the same.

Part 1: The Alpha Mask

We are going to create an Alpha layer mask by selecting the most important part of the image. This will be a very loose selection so it can be done in just a few seconds by anyone. I usually use the Magnetic Lasso Tool because its so fast.

Here is the photo at the point where I've drawn a rough selection around the critical Holley parts and have opened the Select Menu and am about to choose Save Selection:



So, again to make sure you're following so far, here are the steps for creating the selection:
  1. Get the photo ready for saving by any workflow you choose.
  2. Do a rough selection of the most important parts of the image
  3. Open the Select Menu and choose Save Selection
As soon as we select Save Selection, we'll see the following:



You can give the selection any name you want. In this example, I called it holley.

Now click the Ok button. When you do this you will see a Alpha channel complete with the resulting mask. Here is what you'll see:



That was pretty easy wasn't it? But why did we do it? What have we gained?

Now for the magic!

Part 2: Save for Web

Choose File | Save for Web from your Photoshop menu.

The photo will load into the Save for Web dialog. At this point you can choose one of the JPG settings, or experiment with several to get the best preview. You can also resize the image (which you should do before making any final decisions).

Now look at this screen shot of the Save for Web interface:



As you can see I have clicked on the little icon next the quality dropdown. This is the magic "use a channel to modify a quality setting". This opens up the dialog that you see above.

From this dialog, choose "holley" since that's the name we gave our channel. When you make this choice, the dialog will change and look like this:



Adjust the slider at point B to choose the quality setting for the unmasked (or unimportant area). Adjust the slider at point A to choose the quality setting for the masked portion (the holley portion in this case).

After you make these choices, click Ok and then go ahead and save the image. Here is the image in our above example:


Image 5: Save for Web - High - Using alpha mask trick

The size of this file is 62,070 bytes. We saved over 10,000 bytes or about 16% on our file size.

Here are the before and after images:



The top image is the one using the Alpha channel Masking trick. The bottom image is the one without.

And here is a reduced size version of the two side by side for easier comparison:



Compare the image to #2 above and you'll find that the parts that are actually Holley look the same in both. But look at the background details and text and you see a marked change.

Okay, that's it. You now know the Alpha Mask Save for Web Magic trick for selective compression of a JPG image. Hope you enjoyed it.

Comments are welcome.
__________________

"The map is not the Territory"
Google Links!

Article Tools

Featured Articles

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #1 (permalink)   IP: 68.200.100.150
That_Look_Photo on 01-03-2007, 04:07 PM
Re: The Alpha JPG - Compression Magic

Wow.. I new there was a way to do that. I will be doing this all the time now.

Thanks for the lessen...

Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)   IP: 207.6.163.136
RHWeiner on 01-04-2007, 02:40 AM
Re: The Alpha JPG - Compression Magic

Mr. Smith...were you a teacher in an earlier life? You do come here with some great knowledge to share. Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)   IP: 76.186.165.240
R_Fredrick_Smith on 01-04-2007, 12:30 PM
Re: The Alpha JPG - Compression Magic

Quote:
Originally Posted by RHWeiner View Post
Mr. Smith...were you a teacher in an earlier life? You do come here with some great knowledge to share. Thank you.
I'm not sure, but I seem to remember this guy name Socrates that I once taught.

Thanks. I have done lots of teaching over the years both in teaching programing to non-programmer types and Sunday school teaching.

Cheers,
rfs
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)   IP: 69.138.20.39
Jagdoc on 01-08-2007, 12:26 PM
Re: The Alpha JPG - Compression Magic

Great tutorial Roger, you are certainly a great asset on this site.

Vic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)   IP: 65.0.225.253
lsc1 on 01-08-2007, 02:38 PM
Re: The Alpha JPG - Compression Magic

Great tutorial. I think you should win the Glamour1 Man of the Year contest.....if there was such a thing. Your willingness to share is awesome. Thanks again.

Cheers,
LSC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)   IP: 67.49.32.15
jimmyd on 01-15-2007, 12:21 PM
Re: The Alpha JPG - Compression Magic

Neat! Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Comment



Article Tools
Display Modes

Posting Rules
You may not post new articles
You may not post comments
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
Trackbacks are Off
Pingbacks are On
Refbacks are On



Friends of Glamour™
ShotCritic.com Savvy.com 


All times are GMT -5. The time now is 02:39 AM.
Glamour 1™ Site Map   ::   Search Engine Optimization by vBSEO 3.0.0 RC5