ImageMagick Mogrify: Watermark Package

I have a weird span running ImageMagick mogrify for multiple files. I use the transform string to do several transformations on the images, which leads to thumbnails. A command with a conversion string works fine in a single file, but sometimes it fails when you run a batch of files. Here is the command (Windows command line):

"C:\Program Files\ImageMagick-6.3.5-Q16\mogrify" \
  -format jpg \
  -thumbnail 400x400">" \
  -background white \
  -gravity center \
  -extent 400x400 \
  -draw "image src-over 0,0 0,0 '//dell1/Oracle/files/watermark.png'" \
  -path \\dell1\Oracle\files\pictures\cj4uoveomiggda97kmqttn0400 \
        \\dell1\Oracle\files\pictures\59\59p5huflk2cnv9drf3r1d65ef9_wc \
        \\dell1\Oracle\files\pictures\7v\7vi3q26cdidk8bproslhhmlkab_wc \
        \\dell1\Oracle\files\pictures\ft\ft0iqkjk08cli8k0iltgmdmfo5_wc

and it doesn’t work with the message "mogrify: Inappropriate drawing of the primitive definition of` image '. "

But I found out that this only happens when inserting a wattermark. I also found out that when I reorder the three files that need to be processed, mogrify is working fine, which is rather strange. I have no idea why this is happening or how to get rid of it.

PS: java, convert .

, .

+3
1

, ImageMagick:/

0

Source: https://habr.com/ru/post/1756184/


All Articles