[SOLVED] Why "EWA Quadratic" becomes "EWA Quddratic"?

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?".
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

[SOLVED] Why "EWA Quadratic" becomes "EWA Quddratic"?

Post by NicolasRobidoux » 2012-10-04T05:16:53-07:00

Code: Select all

Version: ImageMagick 6.7.9-10 2012-10-04 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP  HDRI

Code: Select all

convert -size 10x6 xc:grey20 +antialias -draw 'fill white line 4,0 5,5' \
    -colorspace RGB +sigmoidal-contrast 7 \
    \( \
    -clone 0 \
    -filter Point \
    -resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'Point' \
    \) \
    \( \
    -clone 0 \
    -filter Cosine \
    -resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'Cosine' \
    \) \
    \( \
    -clone 0 \
    -filter Lanczos \
    -resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'Lanczos' \
    \) \
    \( \
    -clone 0 \
    -define filter:window=Jinc -define filter:lobes=3 \
    -resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'Ginseng' \
    \) \
    \( \
    -clone 0 \
    -filter Lanczos -define filter:blur=.9264075766146068 \
    -distort Resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'EWA LanczosRadius3' \
    \) \
    \( \
    -clone 0 \
    -filter Catrom \
    -resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'Catrom' \
    \) \
    \( \
    -clone 0 \
    -filter Lanczos -define filter:blur=.9891028367558475 \
    -distort Resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'EWA LanczosSharp' \
    \) \
    \( \
    -clone 0 \
    -filter RobidouxSharp \
    -distort Resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'EWA RobidouxSharp' \
    \) \
    \( \
    -clone 0 \
    -define filter:window=Quadratic \
    -distort Resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'EWA QuadraticJinc' \
    \) \
    \( \
    -clone 0 \
    -resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'Mitchell' \
    \) \
    \( \
    -clone 0 \
    -distort Resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'Robidoux' \
    \) \
    \( \
    -clone 0 \
    -filter Quadratic \
    -distort Resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'EWA Quadratic' \
    \) \
    \( \
    -clone 0 \
    -filter Quadratic \
    -resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'Quadratic' \
    \) \
    \( \
    -clone 0 \
    -filter Spline \
    -distort Resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'EWA Spline' \
    \) \
    \( \
    -clone 0 \
    -filter Spline \
    -resize 100x \
    -sigmoidal-contrast 7 -colorspace sRGB \
    -set caption 'Spline' \
    \) \
    -delete 0 \
    miff:- \
    | \
    montage \
        -label '%[caption]' \
        - \
        -geometry '120x65>+2+2' \
        -tile x3 \
        -background lightsteelblue \
        -fill black \
        -title 'Sigmoidized enlargements (contrast=7)' \
        -depth 8 \
        nicolas_enlarged_sigmoidizedNEW.png
In the resulting image, the label under the second image of the last row is "EWA Quddratic" instead of "EWA Quadratic" as specified in the convert command.
???
Last edited by NicolasRobidoux on 2012-10-05T08:50:31-07:00, edited 2 times in total.

User avatar
magick
Site Admin
Posts: 11065
Joined: 2003-05-31T11:32:55-07:00

Re: Why is "EWA Quadratic" turn into "EWA Quddratic" in capt

Post by magick » 2012-10-04T05:27:26-07:00

It looks like you have a structure mismatch when you switched from non-HDRI to HDRI. Perhaps a module was not compiled properly. Try 'make clean' then 'make install'. Does that fix the problem?

NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Why is "EWA Quadratic" turn into "EWA Quddratic" in capt

Post by NicolasRobidoux » 2012-10-04T05:35:23-07:00

Recompiling right now.
FYI: Get

Code: Select all

coders/tiff.c: In function 'TIFFTagExtender':
coders/tiff.c:1832:9: warning: excess elements in struct initializer [enabled by default]
coders/tiff.c:1832:9: warning: (near initialization for 'TIFFExtensions[0]') [enabled by default]
coders/tiff.c:1832:9: warning: excess elements in struct initializer [enabled by default]
coders/tiff.c:1832:9: warning: (near initialization for 'TIFFExtensions[0]') [enabled by default]
coders/tiff.c:1832:9: warning: excess elements in struct initializer [enabled by default]
coders/tiff.c:1832:9: warning: (near initialization for 'TIFFExtensions[0]') [enabled by default]
coders/tiff.c:1832:9: warning: excess elements in struct initializer [enabled by default]
coders/tiff.c:1832:9: warning: (near initialization for 'TIFFExtensions[0]') [enabled by default]
coders/tiff.c:1832:9: warning: excess elements in struct initializer [enabled by default]
coders/tiff.c:1832:9: warning: (near initialization for 'TIFFExtensions[0]') [enabled by default]
coders/tiff.c:1832:9: warning: excess elements in struct initializer [enabled by default]
coders/tiff.c:1832:9: warning: (near initialization for 'TIFFExtensions[0]') [enabled by default]
coders/tiff.c:1832:9: warning: excess elements in struct initializer [enabled by default]
coders/tiff.c:1832:9: warning: (near initialization for 'TIFFExtensions[0]') [enabled by default]
coders/tiff.c:1834:7: warning: excess elements in struct initializer [enabled by default]
coders/tiff.c:1834:7: warning: (near initialization for 'TIFFExtensions[0]') [enabled by default]
No clue if related.

NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Why does "EWA Quadratic" become "EWA Quddratic" in capti

Post by NicolasRobidoux » 2012-10-04T06:05:38-07:00

No change after

Code: Select all

svn up && make clean && ./configure --enable-hdri && make && sudo make install
(This was before Cristy updated tiff.c. Let me try again.)

NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Why does "EWA Quadratic" become "EWA Quddratic" in capti

Post by NicolasRobidoux » 2012-10-04T06:15:31-07:00

The tiff.c fix does not fix my problem.
Let me try without HDRI.

NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Why does "EWA Quadratic" become "EWA Quddratic" in capti

Post by NicolasRobidoux » 2012-10-04T06:27:37-07:00

@Cristy:
Compiling w/o HDRI does not fix things.
-----
Also:
This is not something new. I get the same "misspelling" with

Code: Select all

/usr/bin/convert -version
Version: ImageMagick 6.6.0-4 2012-08-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
This is the Linux Mint 12 package managed version (should be same as Ubuntu 12.04).
-----
Maybe you should move this to Bugs?

NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Why does "EWA Quadratic" become "EWA Quddratic" in capti

Post by NicolasRobidoux » 2012-10-04T06:32:09-07:00

@Cristy:
Made a mistake RE: this being an old bug: Had not realized that the "classic" IM was choking on the recent filter Cosine:

Code: Select all

convert: unrecognized image filter `Cosine' @ error/convert.c/ConvertImageCommand/1435.
montage: no decode delegate for this image format `/tmp/magick-XX6c2cpv' @ error/constitute.c/ReadImage/533.
montage: missing an image filename `nicolas_enlarged_sigmoidizedNEW.png' @ error/montage.c/MontageImageCommand/1681.
Let me check with a version without this filter.
P.S. Linux Mint 12 really uses an antique IM: -distort Resize not recognized. GRRR!

NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Why does "EWA Quadratic" become "EWA Quddratic" in capti

Post by NicolasRobidoux » 2012-10-04T06:38:54-07:00

Same bug with bleeding bleeding edge (svn up) IM7:

Code: Select all

convert -version
Version: ImageMagick 7.0.0-0 2012-10-04 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP  HDRI
So, at this point, HDRI and Q16 svn IM6 or and HDRI IM7 both have the "misspelling" bug.
No idea if this is new, since my package managed IM is too old for my script on numerous counts.

User avatar
magick
Site Admin
Posts: 11065
Joined: 2003-05-31T11:32:55-07:00

Re: Why does "EWA Quadratic" become "EWA Quddratic" in capti

Post by magick » 2012-10-04T06:54:17-07:00

We of course tried your script before we posted and we get expected results (e.g."EWA QUADRATIC") for versions 6.6.9-10 and 7.0.0-0.

NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Why does "EWA Quadratic" become "EWA Quddratic" in capti

Post by NicolasRobidoux » 2012-10-04T06:57:47-07:00

Cristy:
Thank you!
-----
No clue what's up on my end, but I'm due to upgrade to the next Mint when it comes out anyway. Unlike what I wrote, Linux Mint 12 is one year old.

I can fix it by adding blank spaces at each end: ' EWA Quadratic '

NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Why does "EWA Quadratic" become "EWA Quddratic" in capti

Post by NicolasRobidoux » 2012-10-04T07:32:14-07:00

Just in case it matters: I'm using UTF-8-unix encoding.

NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Why does "EWA Quadratic" become "EWA Quddratic" in capti

Post by NicolasRobidoux » 2012-10-04T08:38:23-07:00

Just so it's out there in case someone else has something similar happening:
I get the same strange behavior with the following script, except that this time it's "EWA Lanczos3Sarrpest", "EWA Rbiidoux", "EWA Tiaangle" and "EWA Quddratic".

Code: Select all

#/bin/sh
convert rings_sm_orig.gif -colorspace RGB                 \
  \(                                                      \
    -clone 0                                              \
    -filter Cosine                                        \
    -resize 101x                                          \
    -colorspace sRGB                                      \
    -set caption 'Cosine'                                 \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -filter Lanczos                                       \
    -resize 101x                                          \
    -colorspace sRGB                                      \
    -set caption 'Lanczos'                                \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -define filter:window=Jinc -define filter:lobes=3     \
    -resize 101x                                          \
    -colorspace sRGB                                      \
    -set caption 'Ginseng'                                \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -filter Lanczos -define filter:blur=.88549061701764   \
    -distort Resize 101x                                  \
    -colorspace sRGB                                      \
    -set caption 'EWA Lanczos3Sharpest'                   \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -filter Lanczos -define filter:blur=.9264075766146068 \
    -distort Resize 101x                                  \
    -colorspace sRGB                                      \
    -set caption 'EWA LanczosRadius3'                     \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -filter RobidouxSharp                                 \
    -distort Resize 101x                                  \
    -colorspace sRGB                                      \
    -set caption 'EWA RobidouxSharp'                      \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -filter Lanczos -define filter:blur=.9891028367558475 \
    -distort Resize 101x                                  \
    -colorspace sRGB                                      \
    -set caption 'EWA LanczosSharp'                       \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -define filter:window=Quadratic                       \
    -distort Resize 101x                                  \
    -colorspace sRGB                                      \
    -set caption 'EWA QuadraticJinc'                      \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -resize 101x                                          \
    -colorspace sRGB                                      \
    -set caption 'Mitchell'                               \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -distort Resize 101x                                  \
    -colorspace sRGB                                      \
    -set caption 'EWA Robidoux'                           \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -filter Triangle                                      \
    -distort Resize 101x                                  \
    -colorspace sRGB                                      \
    -set caption 'EWA Triangle'                           \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -filter Triangle                                      \
    -resize 101x                                          \
    -colorspace sRGB                                      \
    -set caption 'Triangle'                               \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -filter Quadratic                                     \
    -distort Resize 101x                                  \
    -colorspace sRGB                                      \
    -set caption 'EWA Quadratic'                          \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -filter Quadratic                                     \
    -resize 101x                                          \
    -colorspace sRGB                                      \
    -set caption 'Quadratic'                              \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -filter Spline                                        \
    -distort Resize 101x                                  \
    -colorspace sRGB                                      \
    -set caption 'EWA Spline'                             \
  \)                                                      \
  \(                                                      \
    -clone 0                                              \
    -filter Spline                                        \
    -resize 101x                                          \
    -colorspace sRGB                                      \
    -set caption 'Spline'                                 \
  \)                                                      \
  -delete 0                                               \
  miff:-                                                  \
  |                                                       \
  montage                                                 \
    -label '%[caption]'                                   \
    -                                                     \
    -geometry '130x130>+3+1'                              \
    -tile x4                                              \
    -background lightsteelblue                            \
    -fill black                                           \
    -title 'Downsizing through linear RGB'                \
    -depth 8                                              \
    nicolas_reduced_linear.png

pngcrush nicolas_reduced_linear.png temp.png

mv temp.png nicolas_reduced_linear.png

henrywho
Posts: 188
Joined: 2011-08-17T06:46:40-07:00
Authentication code: 8675308

Re: Why does "EWA Quadratic" become "EWA Quddratic" in capti

Post by henrywho » 2012-10-04T23:42:12-07:00

Windows non-HDRI ... no problem
HDRI neither

NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Why does "EWA Quadratic" become "EWA Quddratic" in capti

Post by NicolasRobidoux » 2012-10-05T05:10:54-07:00

@Henry:
Thank you, very much, for reporting on this.
I'm still mystified. Will work on this today. Wondering if it's not doing ldconfig enough.

NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Why does "EWA Quadratic" become "EWA Quddratic" in capti

Post by NicolasRobidoux » 2012-10-05T05:52:18-07:00

Anthony sees the "double d" bug. (He sounds awfully busy, though.)
So it's not only me.
-----
I've compiled multiple svn and non-svn versions with various compile flags and I always get the "double d".
It looks like this is real. But I'm wondering if you need a specific version of a delegate library to see it.
I'm on Linux Mint 12 (-Ubuntu 10.11), kept up to date.
Last edited by NicolasRobidoux on 2012-10-05T08:02:49-07:00, edited 1 time in total.

Post Reply