NOTE: I have read the instructions about posting here and I will follow it but my disclaimer is this - I am an engineer developing a very cool website. My camera guy set up some things with IM. We need to add one small feature of a mask to the script but he is no longer available. I am not a programmer. I know that IM is a powerful tool but I cannot devote the time to understanding the syntax. So forgive me for my IM shortcomings but we really need help and I am willing to pay for it. Thank you.
*****************************************************
We are taking about 45 jpgs for a motion jpg. These jpgs are numbered sequentially with the following code:
imconvert FILE_*.jpg +repage -scene 001 FILE_%%03d.jpg
Then we assemble them into an AVI for FTP.
My question is this - we need to go back and add a mask to these jpgs. This is what we have come up with:
for /f %%a IN ('dir /b *.jpg') do convert %%a -scene 001 %2 -composite %3\%%a "d:\images" "d:\video mask.png" d:\final
Getting errors about not recognizing most every attribute and / or not expecting it. If I have to debug this my head will explode.
Anybody?
Masking a MJPEG - help us fix it and we will pay you
Re: Masking a MJPEG - help us fix it and we will pay you
I am trying - latest run:
D:\AxisFTPLocal\Preset1>imconvert PA1_*.jpg -scene 001 %2 -composite %3\%%a D:\A
xisFTPLocal\Preset1 D:\AxisFTPLocal\Preset1 mask.png D:\AxisFTPLocal\Preset1\Mas
k
imconvert: unable to open image `%2': No such file or directory @ blob.c/OpenBlo
b/2480.
imconvert: unable to open image `%3\%%a': No such file or directory @ blob.c/Ope
nBlob/2480.
imconvert: unable to open image `D:\AxisFTPLocal\Preset1': Permission denied @ b
lob.c/OpenBlob/2480.
D:\AxisFTPLocal\Preset1>imconvert PA1_*.jpg -scene 001 %2 -composite %3\%%a D:\A
xisFTPLocal\Preset1 D:\AxisFTPLocal\Preset1 mask.png D:\AxisFTPLocal\Preset1\Mas
k
imconvert: unable to open image `%2': No such file or directory @ blob.c/OpenBlo
b/2480.
imconvert: unable to open image `%3\%%a': No such file or directory @ blob.c/Ope
nBlob/2480.
imconvert: unable to open image `D:\AxisFTPLocal\Preset1': Permission denied @ b
lob.c/OpenBlob/2480.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Masking a MJPEG - help us fix it and we will pay you
Convert can compose to all the images in memory
imconvert FILE_*.jpg null: video mask.png -layers composite ...continue...
See IM Examples, Layers Composite
http://www.imagemagick.org/Usage/anim_mods/#composite
You can still use -geometry -gravity and -compose to specify position and composition style.
WARNING: avoid repeatedly reading and saving JPEG images, it is a lossy format.
Better to save to say PNG and only go to JPEG as a final step if needed.
imconvert FILE_*.jpg null: video mask.png -layers composite ...continue...
See IM Examples, Layers Composite
http://www.imagemagick.org/Usage/anim_mods/#composite
You can still use -geometry -gravity and -compose to specify position and composition style.
WARNING: avoid repeatedly reading and saving JPEG images, it is a lossy format.
Better to save to say PNG and only go to JPEG as a final step if needed.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Masking a MJPEG - help us fix it and we will pay you
Got it working. You rock.
Re: Masking a MJPEG - help us fix it and we will pay you
Will contact you by PM regarding promised payment to person who could fix it.