Search found 9 matches
- 2015-11-11T07:28:02-07:00
- Forum: Users
- Topic: Selecting piped images
- Replies: 6
- Views: 3157
Re: Selecting piped images
Can't you just fold the processing for $tmpA2 into a parentheses section where you have $tmpA2. But what does this have to do with piping? You should avoid piping and just fold all the commands together into one big command line. I could, but I didn't since you didn't. What you do in your scripts ...
- 2015-11-09T21:41:20-07:00
- Forum: Users
- Topic: Selecting piped images
- Replies: 6
- Views: 3157
Re: Selecting piped images
Or am I misunderstanding what you desired to do? Why must it have piped input? I am actually implementing your "spot" script on JavaScript. Unlike in your scripts, I can't afford to write files in each step so I keep MIFFs in memory. Take this command from the "spot" script for an example: convert ...
- 2015-11-08T22:49:26-07:00
- Forum: Users
- Topic: Selecting piped images
- Replies: 6
- Views: 3157
Selecting piped images
I wrote a program that does this and it works perfectly: { convert rose: miff:-; convert rose: -colorspace gray miff:-; } \ | convert miff:- +append result.png Now I have a line like this which I have to use it with piped images: convert one.png \( two.png +level 50x100% -blur '0x5' \) -compose ...
- 2015-10-29T09:49:14-07:00
- Forum: Users
- Topic: Using scripts made for single images on animated GIFs
- Replies: 10
- Views: 4022
Re: Using scripts made for single images on animated GIFs
Piping didn't work in PowerShell, but it did work in regular "cmd.exe". I'll post my final code when it's open source ready.
- 2015-10-26T05:44:37-07:00
- Forum: Users
- Topic: Using scripts made for single images on animated GIFs
- Replies: 10
- Views: 4022
Re: Using scripts made for single images on animated GIFs
Creating a file there is perfectly fine: C:\Users\User\AppData\Local\Temp> convert rose: gif:- | convert - -resize "200%" bigrose.jpg convert.exe: corrupt image `C:/Users/User/AppData/Local/Temp/magick-15076Pe9d_SFQpkYE' @ error/gif.c/ReadGIFImage/1368. convert.exe: no images defined `bigrose.jpg ...
- 2015-10-26T04:12:57-07:00
- Forum: Users
- Topic: Using scripts made for single images on animated GIFs
- Replies: 10
- Views: 4022
Re: Using scripts made for single images on animated GIFs
Spent a few hours trying to make this work with no success. Today I decided to create a small program that does the same thing so I can debug it easier, but I kept ending up with this: convert.exe: ImproperImageHeader `C:/Users/User/AppData/Local/Temp/magick-15480xxvx70OQrJCb' @ error/miff.c ...
- 2015-10-23T06:15:32-07:00
- Forum: Users
- Topic: Using scripts made for single images on animated GIFs
- Replies: 10
- Views: 4022
Re: Using scripts made for single images on animated GIFs
Now my script looks like this: 1- Read frame count of GIF: "${sourcePath}" -format "%n " info: 2- Read frames directly from source GIF and write them to files: "${sourcePath}[${frameIndex}]" ... "processed-%04d.miff" 3- Read each processed frame and write the resulting GIF: "processed-*.miff" out ...
- 2015-10-22T20:26:03-07:00
- Forum: Users
- Topic: Using scripts made for single images on animated GIFs
- Replies: 10
- Views: 4022
Re: Using scripts made for single images on animated GIFs
I suspected the same thing. What I am hoping for is something like a foreach loop in "convert" that can run the "-clone"s for each frame, thus eliminating the need for copying all the frames into their own files. I/O takes time and it really slows down the process. For example, a 4 second long GIF ...
- 2015-10-22T02:07:54-07:00
- Forum: Users
- Topic: Using scripts made for single images on animated GIFs
- Replies: 10
- Views: 4022
Using scripts made for single images on animated GIFs
I have found a few cool scripts on fmw42's website that I want to use on some animated GIFs. It currently looks like I have to dissect the GIF, run the script for every frame and stitch it back again. I was wondering if there is a way to make the cartoon script and other complicated scripts like ...