newbie

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
degarb

newbie

Post by degarb »

I just bought a new sony cybershot 350--14 mega pixels- for $179 at sears. I don't like that the colors are less vivid than my gateway dc t50.

So I googled 'program to increase jpg saturation' and stumbled over here just a few minutes ago. The project looks promising (windows xp here) but perhaps over the head of an amateur like me. It looks like even the descriptions of the offerings are written for photo experts and programmers.

First: what is the best batch saturation tool for me? ( I only want one task--color saturation-- and to try it quickly, for now. I see one thread, but no mention of platform or downloaded tools.)

Secondly: what is a good photography discussion forum that isn't too deep? ( I will read once every 3 months when grass isn't too high on a Saturday.)

Thanks.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: newbie

Post by snibgo »

ImageMagick is aimed at people who aren't afraid of the command line. For example, to increase the saturation of a number of JPEGs (in Windows):

Code: Select all

md \moresat
cd \moresat
copy \mypictures\*.jpg .
mogrify -modulate 100,180,100 *.jpg
In the above, "180" gives a massive increase, just to be obvious. You probably need something more like "120". (Note: this makes copies, and changes those. Always backup your originals, and never ever change them.)

I founded a non-technical photo forum many years ago: http://photo.net/philosophy-of-photography-forum/ (but no longer administer it). Other forums there address technical issues.
snibgo's IM pages: im.snibgo.com
degarb

Re: newbie

Post by degarb »

I am a dos era user. So what do I need to download to do this on xp?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: newbie

Post by snibgo »

Follow the instructions at http://www.imagemagick.org/script/binar ... hp#windows

You just download and run an installation file.
snibgo's IM pages: im.snibgo.com
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: newbie

Post by Bonzo »

When you have Imagemagick installed - do not forget ghostscript as well if you are working with text - this may be of help:
http://www.rubblewebs.co.uk/imagemagick ... indows.php
degarb

Re: newbie

Post by degarb »

snibgo wrote:ImageMagick is aimed at people who aren't afraid of the command line. For example, to increase the saturation of a number of JPEGs (in Windows):

Code: Select all

md \moresat
cd \moresat
copy \mypictures\*.jpg .
mogrify -modulate 100,180,100 *.jpg
In the above, "180" gives a massive increase, just to be obvious. You probably need something more like "120". (Note: this makes copies, and changes those. Always backup your originals, and never ever change them.)

I founded a non-technical photo forum many years ago: http://photo.net/philosophy-of-photography-forum/ (but no longer administer it). Other forums there address technical issues.

Thanks, I just took the plunge and installed and created a bat file. I like the look of the 180. But, what is the artifact that will be added to the photos with color saturating like this?
degarb

Re: newbie

Post by degarb »

also, what would the proper "for in " dos bat file be, to be recursive?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: newbie

Post by snibgo »

I like the look of the 180. But, what is the artifact that will be added to the photos with color saturating like this?
I'm not sure I understand the question. The command will increase colour saturation: dull colours will become more intense, without changing hue or lightness much. But greater values will remove darkness and lightness from all colours except pure black and white. Try "5000" to max-out saturations, losing information that can't be restored.
also, what would the proper "for in " dos bat file be, to be recursive?
See DOS domentation such as "help for". You might use FOR /D %%f in (*) DO ... to walk through directory names, or FOR /R %%f in (*.jpg) DO ... to walk through jpeg files. In either case, replace the appropriate part of my commands.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: newbie

Post by fmw42 »

also, what would the proper "for in " dos bat file be, to be recursive?
See the following as it may help. http://www.imagemagick.org/Usage/windows/

Also for newbies, see all the pages at http://www.imagemagick.org/Usage/
degarb

Re: newbie

Post by degarb »

One concern is the saturated jpg's are smaller files than the originals. I assume that is because the camera is compressing the jpgs to a higher quality value than mogrify.

If this is the case, (I would like to know what the quality % is, since I don't like qualities below 92-94 percent, based on my map scanning in past.) is there some command line control of the jpg quality?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: newbie

Post by fmw42 »

degarb wrote:One concern is the saturated jpg's are smaller files than the originals. I assume that is because the camera is compressing the jpgs to a higher quality value than mogrify.

If this is the case, (I would like to know what the quality % is, since I don't like qualities below 92-94 percent, based on my map scanning in past.) is there some command line control of the jpg quality?

I suspect each systems measure of quality may be different. Nevertheless, IM default for -quality in jpgs is 85.

see -quality at http://www.imagemagick.org/script/comma ... ptions.php in particular at http://www.imagemagick.org/script/comma ... hp#quality
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: newbie

Post by snibgo »

The best available quality for jpegs come from, I think, "-quality 100 -sampling-factor 1x1".

But this can't replace quality that has already been lost, and may give a larger file than is justified. I never use jpegs for anything other than final results, because every conversion can lose information.
snibgo's IM pages: im.snibgo.com
degarb

Re: newbie

Post by degarb »

The 85 quality is a bit low, I suspect.

My reasoning: it is like making an mp3 of an mp3. So you are getting 85% of an 85% image = .85 x .85 = 72.25% image quality .... Or am I wrong?

Just testing and looks like, to keep roughly the same size, the compression of mogrify should be between 96 and 97 percent. (And, that 3 to 4 percent loss from the original is probably somewhat significant, but not in real world terms--I just am not sure. I base this on a map scan I did a few years ago and testing jpg compression from 92 percent (which was maximum compression acceptable for reading the street names) to 100 percent; even at 99 or 97 percent, the loss was startling noticeable. I think, based on size to quality ratio, I chose the 94% jpg to scan the maps.)

I am leaning toward 'mogrify -modulate 100,136,100 -quality 97 colorenh\*.jpg' for the bat file without the for in routine.

I did wrestle with putting the -quality 97 after the *.jpg. The placement of the switch at end, nullifies the switches use by mogrify.

This is an exciting tool. I will see what other improvements it can do next weekend. Any one with, any other suggested improvements?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: newbie

Post by snibgo »

The default jpeg quality setting now seems to be "95". I thought it was "85". Perhaps it has changed, or I have been wrong.

The quality number and file size may have little to do with real life:

Code: Select all

convert in.jpg -quality 100 -sampling-factor 1x1 out.jpg
can increase both quality setting (see "identify -verbose") and filesize without adding meaningful quality.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: newbie

Post by fmw42 »

all options in convert or mogrify should be before the output
Post Reply