generation loss error

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
jjoyner
Posts: 2
Joined: 2015-10-19T07:46:21-07:00
Authentication code: 1151

generation loss error

Post by jjoyner »

Hi all. I'm working on generation loss for my architecture thesis project. I'm very new to coding. I found Burny's code for generation loss https://commons.wikimedia.org/wiki/File ... times).png. That was then translated to Windows, but it's not working for me. Image

Code: Select all

%IM%convert rose: slowviolence.jpg

echo off

for /L %%i in (0,1,1999) do (
  set /A NEXT=%%i+1

  %IM%convert slowviolence.jpg -rotate 90 -quality 85 slowviolence.jpg

  set /A x = ^(%%i/100^)*100
  if !x!==%%i (
    echo .
  ) else (
    del slowviolence.jpg
  )
)

echo on
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: generation loss error

Post by snibgo »

Please don't multi-post.

It seems that you are pasting the contents of a BAT file into the command window. Instead, you should paste it into a BAT file, and call that file.

You don't need "%IM%" at the start of IM commands, unless (like me) you need to.

Have you installed ImageMagick?
snibgo's IM pages: im.snibgo.com
jjoyner
Posts: 2
Joined: 2015-10-19T07:46:21-07:00
Authentication code: 1151

Re: generation loss error

Post by jjoyner »

I'm sorry for the multi-post.
I'm such a beginner with this :?
I've downloaded ImageMagick. The image of the wizard comes up when I type the covert code into the command prompt. I saved the code as a BAT from my notepad, and tried to call the file. This is what came up Image
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: generation loss error

Post by snibgo »

It can't find "slowviolence.jpg". What happened when you tried to create it:

Code: Select all

convert rose: slowviolence.jpg
snibgo's IM pages: im.snibgo.com
Post Reply