odd mpr:tmp error when iterating images

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
frasina92
Posts: 1
Joined: 2019-08-31T06:38:50-07:00
Authentication code: 1152

odd mpr:tmp error when iterating images

Post by frasina92 »

I have two (essentially) IDENTICAL scripts. One will run, and one will not. Here is what is looks like:

Code: Select all

#!/bin/bash
convert '/Users/marcleonard/Desktop/test/img001_grid.png' -interpolate Blend -unsharp 0x2 -virtual-pixel Black -set option:distort:viewport 1920x1080-0-0 -write mpr:tmp +delete \ 
mpr:tmp -distort SRT "0,0 0.6 0 0,-496.79999999999995" -write '/Users/marcleonard/Desktop/test/01/01/173/temp/animations.animation_4_zoom0000.jpg' +delete \
mpr:tmp -distort SRT "0,0 0.59 0 0,-479.52" -write '/Users/marcleonard/Desktop/test/01/01/173/temp/animations.animation_4_zoom0001.jpg' +delete \
mpr:tmp -distort SRT "0,0 0.58 0 0,-462.2399999999999" -write '/Users/marcleonard/Desktop/test/01/01/173/temp/animations.animation_4_zoom0002.jpg' +delete \
mpr:tmp -distort SRT "0,0 0.57 0 0,-444.9599999999999" -write '/Users/marcleonard/Desktop/test/01/01/173/temp/animations.animation_4_zoom0003.jpg' +delete \
mpr:tmp -distort SRT "0,0 0.5599999999999999 0 0,-427.67999999999995" -write '/Users/marcleonard/Desktop/test/01/01/173/temp/animations.animation_4_zoom0004.jpg' +delete \
mpr:tmp -distort SRT "0,0 0.55 0 0,-410.4000000000001" -write '/Users/marcleonard/Desktop/test/01/01/173/temp/animations.animation_4_zoom0005.jpg' +delete \
mpr:tmp -distort SRT "0,0 0.54 0 0,-393.1200000000001" -write '/Users/marcleonard/Desktop/test/01/01/173/temp/animations.animation_4_zoom0006.jpg' +delete \
mpr:tmp -distort SRT "0,0 0.53 0 0,-375.84000000000003" -write '/Users/marcleonard/Desktop/test/01/01/173/temp/animations.animation_4_zoom0007.jpg' +delete \
mpr:tmp -distort SRT "0,0 0.52 0 0,-358.56000000000006" -write '/Users/marcleonard/Desktop/test/01/01/173/temp/animations.animation_4_zoom0008.jpg' +delete \
mpr:tmp -distort SRT "0,0 0.51 0 0,-341.28" '/Users/marcleonard/Desktop/test/01/01/173/temp/animations.animation_4_zoom0009.jpg'  \
Literally, the only thing that is different between the two are the file paths. The error I get is:

Code: Select all

convert: missing an image filename ` ' @ error/convert.c/ConvertImageCommand/3262.
line 3: mpr:tmp1: command not found
What the heck is going on?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: odd mpr:tmp error when iterating images

Post by snibgo »

The last line of your command ends with backslash, "\". Why?

EDIT: And your first line has a space after the final "\".
snibgo's IM pages: im.snibgo.com
Post Reply