We have developed a Drupal custom module that creates nodes from images uploaded to an FTP. The module also converts PSD images to JPG thanks to imageMagick. Our server is a Debian 5. Today the module lacks on performances leading to server crashes in some cases.
We want you to:
1. Change the ImageMagick tmp folder to some other place, like the Drupal files/tmp/ folder. Indeed, the default system temporary files folder is /tmp. The partition associated to /tmp is too small and some ImagMagick temp files are too big for it leading to a system crash.
2. Mark images as being processed in the queue table. Indeed, some PSD files are pretty big (> 50Mb) and need several minutes to be processed. We have a queue table that let’s process the images not all at the same time. The issue with it, is that files are not marked as being processed in the queue list until the conversion is finished, meaning that if the cron is launched before the image is processed, a new conversion of the same image will be launch. Leading to multiple convert processes of the same image.
3. Limit CPU usage of the convert process. To convert an image imageMagick launches a process named convert. This process can use up to 100% of the CPU leading to a very slow site navigation. We need a linux package and configuration that would limit all the convert processes to use max 40% of the CPU for example
* Apply only if you can send an invoice in english