Page 1 of 1

Missing Image

Posted: 2018-05-04T01:35:58-07:00
by mirrorworld
Hi Guys
I'm very new to IM but have a problem I can't solve, hoping someone can help
I've created an image using the convert command
convert -size 1000x1000 XC:white side2.png -geometry +0+0 -composite side1.png -geometry +0+0 -composite -trim -rotate 45 -transparent white -trim chevron.png
which all seems to work perfectly, however when I then try and load the image created to add a drop shadow the image won't load. I just get a blank space..
Can anyone shed any light on this
Thanks

Using IM 7.07-21 q16 x64 win 10

Re: Missing Image

Posted: 2018-05-04T03:53:14-07:00
by mirrorworld
### SOLVED ###
Wasn't a problem with the code, just had to wait a fraction before calling the image I'd just created, then could work on it without a problem.
Did this by just calling the required code in two separate functions.
would still be interest if there is a more elegant way to achieve this :-)

Re: Missing Image

Posted: 2018-05-04T06:03:04-07:00
by snibgo
Are you running commands from ordinary command windows? Or from something else?

In Windows, a command cannot usually be started until the previous one has finished. So if one command creates "chevron.png", that file will be available to the next command.

However, it is possible to run programs with "nowait", so the first program can still be running when you start the next program, so "chevron.png" will still be open.