Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,158 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,106 people online right now. Registration is fast and FREE... Join Now!




Image Processing Application

 
Reply to this topicStart new topic

Image Processing Application

musya
16 Dec, 2007 - 03:34 PM
Post #1

D.I.C Regular
Group Icon

Joined: 25 Apr, 2007
Posts: 291



Thanked: 1 times
Dream Kudos: 50
My Contributions
Hello Everyone,

I need to create a software (a little app more like it) that takes in a dir or file of pictures, and allows you to resize them all to a specified size, hopefully it does the resizing for you. my question is this, how do i go about the resizing part i have never dealt with image manipulation when it comes to programming, i know c++, but this will run on windows most likely than anything else, so using specific win api's or libraries wouldnt be a problem.

Thank You!
Musya
User is offlineProfile CardPM
+Quote Post

musya
RE: Image Processing Application
18 Dec, 2007 - 12:15 AM
Post #2

D.I.C Regular
Group Icon

Joined: 25 Apr, 2007
Posts: 291



Thanked: 1 times
Dream Kudos: 50
My Contributions
Could someone maybe say they dont know so i dont feel completly ignored on the site?
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Image Processing Application
18 Dec, 2007 - 03:05 AM
Post #3

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 11 times
My Contributions
I'm sure somebody will help you. I've only done this with Java, but it's not that difficult with C++ either.
Please specify the filetypes you want to deal with, because you'll need the specific libraries that can load and save them. (I know that the Windows API support BMPs, but I'm not sure if anything else is available out of the box)
User is offlineProfile CardPM
+Quote Post

musya
RE: Image Processing Application
18 Dec, 2007 - 07:46 PM
Post #4

D.I.C Regular
Group Icon

Joined: 25 Apr, 2007
Posts: 291



Thanked: 1 times
Dream Kudos: 50
My Contributions
QUOTE(1lacca @ 18 Dec, 2007 - 04:05 AM) *

I'm sure somebody will help you. I've only done this with Java, but it's not that difficult with C++ either.
Please specify the filetypes you want to deal with, because you'll need the specific libraries that can load and save them. (I know that the Windows API support BMPs, but I'm not sure if anything else is available out of the box)


.jpeg is The most common one, I doubt I will have any other if I do i'll manually convert them, but converting 1000+ images manually sucks. It can be any library im open as long as it can run on Windows.
User is offlineProfile CardPM
+Quote Post

jjhaag
RE: Image Processing Application
18 Dec, 2007 - 08:07 PM
Post #5

me editor am smartastic
Group Icon

Joined: 18 Sep, 2007
Posts: 1,789



Thanked: 2 times
Dream Kudos: 775
Expert In: C,C++

My Contributions
Are you just looking to build this program because you don't want to do the manual resizing? Because you can do that in batch mode using macros in Photoshop (not sure about GIMP, but I'll look into this some more).

But back to your original question, Intel has a big library that supports the JPEG format (along with a whole lot of other stuff) that can be found here. There's an evaluation version available, in addition to the purchasable library. I haven't used it myself, but I've come across a few demo/tutorial things on the web that have used it, and it seems pretty decent.

*edit - yup, GIMP has batch mode.

This post has been edited by jjhaag: 18 Dec, 2007 - 08:09 PM
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Image Processing Application
19 Dec, 2007 - 01:25 AM
Post #6

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 11 times
My Contributions
And Irfanview has a batchmode as well, I think maybe it is the most lightweight solution.
User is offlineProfile CardPM
+Quote Post

musya
RE: Image Processing Application
20 Dec, 2007 - 01:26 AM
Post #7

D.I.C Regular
Group Icon

Joined: 25 Apr, 2007
Posts: 291



Thanked: 1 times
Dream Kudos: 50
My Contributions
I've looked for macros on google for photoshop but no luck is called something else?
User is offlineProfile CardPM
+Quote Post

jjhaag
RE: Image Processing Application
20 Dec, 2007 - 01:43 AM
Post #8

me editor am smartastic
Group Icon

Joined: 18 Sep, 2007
Posts: 1,789



Thanked: 2 times
Dream Kudos: 775
Expert In: C,C++

My Contributions
Well, "photoshop macro" gets a number of hits for me...but they are more often referred to in photoshop as "actions". They are run in batch processing mode. I'd go into more detail, but
http://www.dreamincode.net/forums/showtopic19313.htm
ta-dah! We've got a simple tutorial on doing them right here at </DIC> wink2.gif

It can take a few runs to figure out some of the options (especially if you want to keep the originals and save the new ones in a different directory), but otherwise it works like a charm.

If you have any problems with getting them up and running, feel free to post either here or in the graphic design forum. Graphic design gets a little more traffic than this forum, and it's probably be more closely related to your topic anyway. But either will work.

And if you do decide to make an application to do this (because, hey, why not, right?), you'll probably have some luck over in the C/C++ forum (I assume that you'd be using C++ because of what you put in your first post).

Hope that helps, and that you get all those pics resized.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 11:34PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month