Search found 36 matches

by imanasya
2018-10-08T01:12:38-07:00
Forum: Users
Topic: How to use conditions with ImageMagick properly
Replies: 4
Views: 3735

Re: How to use conditions with ImageMagick properly

It did not help. I'm getting the error: magick: unable to open image 'fuzz': No such file or directory @ error/blob.c/OpenBlob/3489. magick: no decode delegate for this image format `' @ error/constitute.c/ReadImage/556. @echo off&setlocal enabledelayedexpansion for /f "tokens=1,2 delims=:&...
by imanasya
2018-10-08T01:01:39-07:00
Forum: Users
Topic: How to combine 2 images?
Replies: 20
Views: 10084

Re: How to combine 2 images?

Thank you
by imanasya
2018-10-07T12:32:55-07:00
Forum: Users
Topic: How to use conditions with ImageMagick properly
Replies: 4
Views: 3735

How to use conditions with ImageMagick properly

When 0.jpg and 1.jpg have resolution 356x800 (w1<h1) and 596x770 (w2<h2) respectively, this line: magick 0.jpg fuzz 2%% -trim +repage -quality 100 first.jpg still doesn't work and every time gives me combined image. Help me please find the mistake in the code: @echo off&setlocal enabledelayedexp...
by imanasya
2018-10-07T11:32:09-07:00
Forum: Users
Topic: How to combine 2 images?
Replies: 20
Views: 10084

Re: How to combine 2 images?

One last question: If I would use -write info: NULL in this line for /f "tokens=1,2 delims=:" %%x in ('convert 0.jpg -fuzz 2%% -trim +repage -format %%w:%%h +write info: NULL') do set a/ w1=%%x&set a/ h1=%%y Does that mean that -fuzz 2%% -trim +repage would done twice: here: for /f &qu...
by imanasya
2018-10-07T11:25:38-07:00
Forum: Users
Topic: How to work with files separately?
Replies: 15
Views: 6821

Re: How to work with files separately?

Thank you
by imanasya
2018-10-07T11:17:57-07:00
Forum: Users
Topic: How to combine 2 images?
Replies: 20
Views: 10084

Re: How to combine 2 images?

It works, thanks
by imanasya
2018-10-07T11:14:14-07:00
Forum: Users
Topic: How to work with files separately?
Replies: 15
Views: 6821

Re: How to work with files separately?

Here in brackets?

Code: Select all

convert \( 1.jpg -resize 110% -rotate 90 +write out1.jpg \) \
\( +clone \( 2.jpg -resize 80% +write out2.jpg \) -gravity southeast -compose over -composite \) \
3.jpg \
+gravity +append \
result.jpg
What does +write do?
by imanasya
2018-10-07T10:56:42-07:00
Forum: Users
Topic: How to combine 2 images?
Replies: 20
Views: 10084

Re: How to combine 2 images?

Thank you, snibgo. I did what you suggested and it looks like it works, but I'm not sure that I did everything right. Can you look at this code? I tried to do Fred's line only if (w1>h1 & w2<h2): @echo off&setlocal enabledelayedexpansion for /f "tokens=1,2 delims=:" %%x in ('conver...
by imanasya
2018-10-07T10:36:15-07:00
Forum: Users
Topic: How to work with files separately?
Replies: 15
Views: 6821

Re: How to work with files separately?

Is it possible to do several out files?
by imanasya
2018-10-07T10:31:11-07:00
Forum: Users
Topic: How to work with files separately?
Replies: 15
Views: 6821

Re: How to work with files separately?

How does this " \( " change in windows?
by imanasya
2018-10-07T10:29:52-07:00
Forum: Users
Topic: How to work with files separately?
Replies: 15
Views: 6821

Re: How to work with files separately?

fmw42, thank you
by imanasya
2018-10-07T10:00:38-07:00
Forum: Users
Topic: How to work with files separately?
Replies: 15
Views: 6821

Re: How to work with files separately?

I'm not sure that RAMdisk is the best for this case. Let me ask in another way. Lets say I have 3 input images: 1.jpg, 2.jpg, 3.jpg. I'd like do increase the first one by 10%, then rotate it 90 degrees clockwise, then save it as out1.jpg. The second image to reduce by 20%, then overlay it to right b...
by imanasya
2018-10-07T07:45:35-07:00
Forum: Users
Topic: How to work with files separately?
Replies: 15
Views: 6821

Re: How to work with files separately?

When I said "variables" I didn't mean txt. I meant saving images to some instances inside ImageMagic (save to RAM, not to hdd).
by imanasya
2018-10-07T04:52:15-07:00
Forum: Users
Topic: How to work with files separately?
Replies: 15
Views: 6821

How to work with files separately?

Is it possible to take 2 images, make some processing with them, then export them in 2 different variables (do not save to files) and then use these variables as inputs for other ImageMagic commands?
by imanasya
2018-10-07T04:13:23-07:00
Forum: Users
Topic: How to combine 2 images?
Replies: 20
Views: 10084

Re: How to combine 2 images?

snibgo, thank you. Maybe I didn't manage to explain clearly. I use "for" loops for getting values w1, h1, w2, h2 only (parse the strings) , not for the processing. They are original files values. When the trim command ends these values are changing: magick image_0.jpg image_1.jpg -fuzz 2%%...