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
marckyL
Posts: 7
Joined: 2016-12-15T16:25:12-07:00
Authentication code: 1151

odd mpr:tmp error when iterating images

Post by marckyL »

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?
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: odd mpr:tmp error when iterating images

Post by GeeMack »

marckyL wrote: 2017-01-10T08:27:02-07:00What the heck is going on?
You have a space after the first continued line "\" character. You also have an unneeded continued line "\" character at the very end of the command.
Post Reply