Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a project where the users will be able to upload images from their browser. The project is coded with PHP. We need to process the uploaded images with some advanced filters and we need a good result.

I googled around and found out that I can use gimp in command line. (http://www.gimp.org/tutorials/Basic_Batch/)

I know that I can use PHP exec() to execute external applications. (http://php.net/manual/en/function.exec.php)

So my questions are: Can I install Gimp on Ubuntu Server with no GUI? Is is possible/a good idea to use Gimp to process image from php instead of using GD?

Thank you all! I'm still a noob with Ubuntu Server and Web server stuff.

share|improve this question
    
GIMP has a dependency on using graphical libraries and runtimes, the last I checked. I'm not certain you can use GIMP for this. –  Thomas W. Apr 4 '13 at 20:20

1 Answer 1

up vote 1 down vote accepted

Server side, imagemagick is a better option s it does not use X (graphical interface). It does a nice job and has several options.

There are many online tutorials, see :

http://stackoverflow.com/questions/561895/resize-a-list-of-images-in-line-command

http://www.howtogeek.com/109369/how-to-quickly-resize-convert-modify-images-from-the-linux-terminal/

http://coding.smashingmagazine.com/2012/09/09/resizing-bash-script-batch-resizing-using-command-line/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.