[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

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

Post by NicolasRobidoux » 2012-10-05T06:20:19-07:00

Here is another script that produces, this time, four mispellings (Lanczos3Sarrpest, Rbiidoux, Tiaangle, and Quddratic). None of my various installs (oldest is 6.7.9-9 from yesterday's tar, so they all are fairly recent) has managed to get this right. (I realize that this does not happen with most people's installs, but a private email from Anthony suggests that it's not only my installs.)

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
There definitely is a pattern: Drop the second letter after a capital letter, and duplicate the fourth one (which has become the third one). But not always.

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-05T07:49:00-07:00

It's not OpenMP: No difference if I configure with --disable-openmp.

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

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

Post by magick » 2012-10-05T08:50:58-07:00

We can reproduce the problem you posted and have a patch in ImageMagick 6.7.9-10 Beta, available sometime tomorrow. Thanks.

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

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

Post by NicolasRobidoux » 2012-10-05T08:51:46-07:00

Cristy's fix of montage.c and/or miff.c in svn rev 9507 fixed this. \o/

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

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

Post by henrywho » 2012-10-08T04:47:33-07:00

There are still many spelling errors in http://www.imagemagick.org/Usage/resize ... linear.png :shock:

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

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

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

@Henry:
I expect (hope?) the misspellings will disappear when the IM used to automatically generate the site catches up with the bug fixes.
Thank you for pointing it out.

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

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

Post by henrywho » 2012-10-09T18:38:37-07:00

Similar stuff for me.... I am now struggling with GCC 4.7.2 Mingw64's link-time-optimization (-flto) .... It gives weird linking error (it said a BZ2 decompression routine was declared as a variable but then re-defined as a function). No such error before I added -flto....

User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post by anthony » 2012-10-09T20:19:49-07:00

NicolasRobidoux wrote:Cristy's fix of montage.c and/or miff.c in svn rev 9507 fixed this. \o/
Oh. Okay, perhaps it was not the filename length.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

Post Reply