Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Auto resize photos?

If you have a question or need help, this is the place to be.
Post Reply
Phil
Experienced User
Posts: 111
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Auto resize photos?

Post by Phil »

Hi
Im looking to do the following.
- Drop a photo from my phone into a dropbox folder
- Have eventghost detect the phone
- Resize the photo to a set percentage (say 40% of its original size for emailing)
- Put the new photo in a different dropbox folder and delete the source file.

I've found a PHP app called Imagick which looks like it may to do the job of resizing (possibly using the scaleImage command) but wondered if anyone else had a solution to this before I started?
http://php.net/manual/en/imagick.scaleimage.php


thanks

Phil
goodcoproflcop
Posts: 21
Joined: Tue Aug 13, 2013 2:18 pm

Re: Auto resize photos?

Post by goodcoproflcop »

Perhaps you could use some batch files and start those from EG? You could use an image editor tool that you can start with a command line, something like:

http://www.imagemagick.org/discourse-se ... hp?t=14587
Phil
Experienced User
Posts: 111
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: Auto resize photos?

Post by Phil »

sorted
for reference:
Using mogrify in imagemagick lets you resize the image by a percentage. You first have to generate a .bat file then execute it in the image directory for it to work.
Post Reply