sepia effect problem

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?".
Post Reply
bademeister

sepia effect problem

Post by bademeister »

Hi there
i've got a little problem with imagemagick and the sepia tone effekt and i hope anyone can help me.
 
When I use 'convert pic.jpg -sepia-tone 80% sepia.jpg' i get the following result:
Image
 
The first picture is from my root server (version 6.3.8 running on gentoo, compiled from source [see useflags below]) and the second one from my localhost (version 6.3.7 running on ubuntu, binary package).
I downgraded from 6.3.8 to 6.3.5.10 on my root server and still got the same result.
 
The use flags of imagemagick are:
media-gfx/imagemagick-6.3.5.10 USE="bzip2 hdri jpeg jpeg2k perl png tiff truetype xml zlib -X -doc -fpx -graphviz -gs -jbig -lcms -mpeg -nocxx -openexr -q32 -q8 -wmf" 0 kB
 
Any ideas?
I'd appreciate any help.
Thanks in advance.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: sepia effect problem

Post by fmw42 »

bademeister wrote:Hi there
i've got a little problem with imagemagick and the sepia tone effekt and i hope anyone can help me.
 
When I use 'convert pic.jpg -sepia-tone 80% sepia.jpg' i get the following result:
Image
 
The first picture is from my root server (version 6.3.8 running on gentoo, compiled from source [see useflags below]) and the second one from my localhost (version 6.3.7 running on ubuntu, binary package).
I downgraded from 6.3.8 to 6.3.5.10 on my root server and still got the same result.
 
The use flags of imagemagick are:
media-gfx/imagemagick-6.3.5.10 USE="bzip2 hdri jpeg jpeg2k perl png tiff truetype xml zlib -X -doc -fpx -graphviz -gs -jbig -lcms -mpeg -nocxx -openexr -q32 -q8 -wmf" 0 kB
 
Any ideas?

You probably should upgrade to the current IM. If you post your original we can try it with the current IM to see what it produces.
I'd appreciate any help.
Thanks in advance.
Can you post your original image?
Last edited by fmw42 on 2008-11-02T16:55:06-07:00, edited 1 time in total.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: sepia effect problem

Post by anthony »

Okay you have a light blue area. Is this the sepia tone result or the original image????? It is not clear!

What is it that you are actually wanting to achieve?

I myself have been trying to understand sepiatone, and the algorithm is a complex one involving multiple levels of thresholds and what looks like a variable solarizing operation. I don't understand it, though it does work.

If you are only wanting a yellow to dark brown gradient type image, there are also other options.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
bademeister

Re: sepia effect problem

Post by bademeister »

Hi,
on the top is the sepia tone result from this original:
Image

The first picture ist from gentoo server and the second one from my ubuntu server.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: sepia effect problem

Post by fmw42 »

Here is what I get from your file on IM 6.4.5-3 Q16 Mac OSX Tiger

your original:
Image

applying sepia 80%:
convert lady.jpg -sepia-tone 80% lady_sepia80.jpg

Image

applying sepia 90%:
convert lady.jpg -sepia-tone 80% lady_sepia90.jpg

Image


I would say you just need to upgrade to the current IM version on your systems. You local server is likely to have a version of sepia that may not have been working correctly. Are both running Q16 or is one running Q8? The one result with the blue on it, looks like some kind of numerical overflow.

I cannot comment about your compile flags. I am not knowledgeable about that.
Post Reply