Re: Strange effects when just changing sizes

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Sun, 17 May 2015, [email protected] wrote:

>
> These scans all have different geometries. What I need is to put them onto a
> page that has a fixed size, using a fixed border - think about a frame with a
> fixed size where the scans are put into.
>
> I have a script which does that just fine with tiffs that have a higher channel
> depth. The main part of the script does this:
>
> gm composite -compress LZW -geometry +0+118 -gravity North -resize 2244x3153
> -units PixelsPerInch -density 300x300 source.tif
> -size 2481x3508 xc:white result.tif
>
> But when I run this, the result looks terrible: the background is black and the
> text looks like some kind of edge-detecting filter has been used. That's the
> output of gm identify:

It surely does look terrible.  I built 1.3.20 from source code to see 
if I could reproduce the terrible effect, but the results are 
wonderfully clean.

Did you build GraphicsMagick from source yourself, or is this 
installed via a package from an OS distribution?

If you built it from source code yourself, did you do 'make check' to 
verify that the test suite passes?

What version of libtiff are you using?  You can find that like

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gm convert -list formats | grep LIBTIFF
      TIFF P  rw+  Tagged Image File Format (LIBTIFF, Version 4.0.3)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Since I am not able to reproduce the problem, I am suspecting a build 
problem.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.