I have a problem that I am making an exam system for which I need that a user can drag small pictures on a bigger picture which will show as a question and correct sequence or answer can be found.
i am unable to find any solution. Please help.
Detect White Spaces in Image and Drag Image
-
- Posts: 1
- Joined: 2018-01-17T22:19:58-07:00
- Authentication code: 1152
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Detect White Spaces in Image and Drag Image
Can you provide an example picture of what you want to do? I am not sure I understand what the background contains and what the foreground image contains in terms of questions and answers. Imagemagick can overlay one image onto another. See https://www.imagemagick.org/Usage/compose/#compose. PHP Imagick has a similar ability. See http://php.net/manual/en/imagick.compositeimage.php. The uploading or dragging and dropping is not something Imagemagick can do. That will need PHP and/or Javascript. What does your question have to do with detecting white space?