Combining images with resize

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Lessthanbefore
Posts: 1
Joined: 2018-01-20T22:19:17-07:00
Authentication code: 1152

Combining images with resize

Post by Lessthanbefore »

New here, but I’ll try to explain the best I can as to what I need happening. Not sure if Imagemagick is the way to go or if someone can point me in the right direction.

Ask user for background image.
Ask user for foreground image.

Upload button....


After upload user sees foreground image on top of background image but has the ability to drag/scale with drag of corner on foreground image and place foreground image anywhere on background image. Basically drag and scale the foreground image before saving the combined images to server.

Is this possible with imagemagick? I know we can combine and resize but can we give user ability to scale and drag the images after they are combined? If no does anyone have a solution I could check out?

Thanks for your knowledge.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Combining images with resize

Post by fmw42 »

Imagemagick is not GUI based. It is command line (type in terminal window). So it does not do upload, download, drag and drop, etc. All it would do to help you is the actual overlaying of one image onto another at the specified location. It can resize image also.

For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Combining images with resize

Post by Bonzo »

Some if not all of the interactive work could be done with JavaScript.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Combining images with resize

Post by fmw42 »

As Bonzo has suggested, a combination of PHP, Imagick, Javascript, AJAX and perhaps Jquery might be able to do all of what you want
Post Reply