Search found 36 matches

by imanasya
2018-10-07T03:49:48-07:00
Forum: Users
Topic: How to combine 2 images?
Replies: 20
Views: 10034

Re: How to combine 2 images?

Mathematically I'd like to check before the main magic command if (w1>h1 and w2<h2) after the trim. If it is true then do magick image_0.jpg image_1.jpg -fuzz 2%% -trim +repage -set option:dim "%%[fx:max(max(u.w,v.w),max(u.h,v.h))]" -filter Catrom -resize "%%[dim]x%%[dim]" -unsha...
by imanasya
2018-10-06T13:44:20-07:00
Forum: Users
Topic: How to combine 2 images?
Replies: 20
Views: 10034

Re: How to combine 2 images?

fmw42, thank you very much, you are a genius! Half of the page windows code you wrote in one line. Could you explain a little bit: this line finding max value (w1,w2,h1,h2) -set option:dim "%%[fx:max(max(u.w,v.w),max(u.h,v.h))]" Then how this operator -resize "%%[dim]x%%[dim]" ma...
by imanasya
2018-10-06T11:44:10-07:00
Forum: Users
Topic: How to combine 2 images?
Replies: 20
Views: 10034

Re: How to combine 2 images?

Thank you. I have a code on windows cmd with ffmpeg which describes what I'm trying to do: if !w1! LSS !h1! ( rem w1<h1 356<800 set "p1=oh/mdar:h='max(ih,main_h)'" rem w=356:h=800 if !w2! LSS !h2! ( rem w1<h1 & w2<h2 356<800 & 596<770 set "p2=oh/mdar:h='max(ih,main_h)'" r...
by imanasya
2018-10-06T03:32:35-07:00
Forum: Users
Topic: How to combine 2 images?
Replies: 20
Views: 10034

Re: How to combine 2 images?

As I see this line scales up the first image only. How can I divide what to do with the first image and what to do with the second?
by imanasya
2018-10-06T00:57:55-07:00
Forum: Users
Topic: How to combine 2 images?
Replies: 20
Views: 10034

Re: How to combine 2 images?

Thank you very much! I put this line in my bat file: magick image_0.jpg image_1.jpg -set option:ww "%%[fx:max(u.w,v.w)]" -set option:hh "%%[fx:max(u.h,v.h)]" -filter Catrom -resize "%%[ww]x%%[hh]" -unsharp 0x1+1+0.05 -background white -gravity center -append -quality 10...
by imanasya
2018-10-05T11:34:50-07:00
Forum: Users
Topic: How to combine 2 images?
Replies: 20
Views: 10034

How to combine 2 images?

Is it possible write a code for ImageMagick which takes 2 images, scales them to max size (w or h) keeping aspect ratio and creates combined image placing first one on top of the second? Maintaining best possible jpg quality with bicubic automatic scaling similar to Photoshop? I have ImageMagick 7.0...