Managing Image Quality

This is a discussion on Managing Image Quality within the C++ Programming forums, part of the General Programming Boards category; I want to manage the quality of images in a folder. Lets say I have Image A.jpg and Image B.jpg ...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    193

    Managing Image Quality

    I want to manage the quality of images in a folder. Lets say I have Image A.jpg and Image B.jpg in an Images directory. I want to change the quality of both those images to a smaller quality, but I want the program to get all the images withing the Images directory and change the quality. This is useful to me because I own a site that has a lot of images in it (urban-coverzone.com) and I don't like 2 MB images on the site, so I change the image quality of the image, but it sometimes is a long and boring process. I want to make something to do this for me, but I have no clue where to start. Any help is greatly appreciated.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,496
    GIMP and Paintshop-pro have "batch" capabilities for this sort of stuff
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    Never heard of either of them. Thanks for the info.

  4. #4
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    Quote Originally Posted by stickman
    Never heard of either of them. Thanks for the info.
    They're free (GIMP) or cheaper (Paintshop) version of Adobe Photoshop, image editing software.
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  5. #5
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    I have Adobe Photoshop, but I don't think that it allows directory image compressing. I haven't learned the program entirely so I may be wrong.

  6. #6
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    I've never done batch processing on Photoshop either, but a quick glance...(on Photoshop CS)
    If you open, say a jpeg file, then go to Image->Image Size, you'll get the dialog box that will let you change the image pixel size or its resolution. Just save those steps as an "action".
    Then go to File->Automate->Batch, set to do "action" that you just save, set source folder, etc.

    Another option from the web world would be to create a php script utilizing ImageMagick to resize the uploaded picture. That's how web photo gallery works to create thumbnails and stuff. ImageMagick is a separate installation from php but you could install it yourself as a user (non-admin). Php also has image manipulation library called GD,. It's less powerful than ImageMagick so you have to check it out yourself.

    Either way, that's all I know on the subject so if you ask me further I won't respond
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  7. #7
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    Quote Originally Posted by alphaoide
    I've never done batch processing on Photoshop either, but a quick glance...(on Photoshop CS)
    If you open, say a jpeg file, then go to Image->Image Size, you'll get the dialog box that will let you change the image pixel size or its resolution. Just save those steps as an "action".
    Then go to File->Automate->Batch, set to do "action" that you just save, set source folder, etc.
    When I opened up Image->Image Size, I didn't see where I could save the action. I have Adobe Photoshop CS 8.0, if that makes any difference.

    Quote Originally Posted by alphaoide
    Another option from the web world would be to create a php script utilizing ImageMagick to resize the uploaded picture. That's how web photo gallery works to create thumbnails and stuff. ImageMagick is a separate installation from php but you could install it yourself as a user (non-admin). Php also has image manipulation library called GD,. It's less powerful than ImageMagick so you have to check it out yourself.
    I would use a PHP script, but I use FTP to upload the images, unless there is a way with PHP that can manipulate the image when its on my harddrive. I understand PHP more than I do C++, but I'm not sure if PHP can do that. I guess I'll play around with PHP and maybe come up with a solution.

    Thanks for all of your guys help. Its much appreciated. Now only if there was a way I could help you guys out.

  8. #8
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    Okay, you misunderstood me.
    "Action" in photoshop is like "macro" in MS Word. Basically what you'd do is start the "action" recording, do all the steps to optimize your images, and then stop recording "action". Just look up the help file how to create an "action"
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  9. #9
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    Quote Originally Posted by alphaoide
    Okay, you misunderstood me.
    "Action" in photoshop is like "macro" in MS Word. Basically what you'd do is start the "action" recording, do all the steps to optimize your images, and then stop recording "action". Just look up the help file how to create an "action"
    Yeah, I did misunderstand you. I understand cleary now. I tested it out, but I got a file size larger than what I get with Paint and it has a horrible quality, really blurry, and I don't think I'll use it. Thanks for the info anyway.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem reading tiff image files?
    By compz in forum C++ Programming
    Replies: 9
    Last Post: 10-30-2009, 04:17 AM
  2. Replies: 1
    Last Post: 05-27-2009, 12:46 PM
  3. Simple Image Processing
    By ejohns85 in forum C++ Programming
    Replies: 4
    Last Post: 03-19-2009, 12:10 PM
  4. HotSpot image controls (web)
    By novacain in forum C# Programming
    Replies: 0
    Last Post: 06-25-2008, 04:27 AM
  5. Replies: 4
    Last Post: 03-02-2003, 08:12 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21