Shehbaz Posted May 8, 2014 Share Posted May 8, 2014 Hi, I am trying to create multiple versions of the uploaded image. Everything goes smooth on my local development machines (multiple) but image generation does not work on server. It gives message that image contains error. Here is the original image: beta-fh-east.fisherhouse.org/site/assets/files/2662/alyssa-milano-high-quality.jpg Code that converts it is as follow: $image->size(350,0); $image->size(480,0); $image->size(560,0); $image->size(680,0); $image->size(760,0); $image->size(840,0); $image->size(960,0); $image->size(1200,0); Server Files: -rw-r--r-- 1 www-data www-data 267278 May 8 10:45 alyssa-milano-high-quality.1200x0.jpg -rw-r--r-- 1 www-data www-data 27619 May 8 10:45 alyssa-milano-high-quality.350x0.jpg -rw-r--r-- 1 www-data www-data 49102 May 8 10:45 alyssa-milano-high-quality.480x0.jpg -rw-r--r-- 1 www-data www-data 64335 May 8 10:45 alyssa-milano-high-quality.560x0.jpg -rw-r--r-- 1 www-data www-data 91962 May 8 10:45 alyssa-milano-high-quality.680x0.jpg -rw-r--r-- 1 www-data www-data 113649 May 8 10:45 alyssa-milano-high-quality.760x0.jpg -rw-r--r-- 1 www-data www-data 137203 May 8 10:45 alyssa-milano-high-quality.840x0.jpg -rw-r--r-- 1 www-data www-data 186581 May 8 10:45 alyssa-milano-high-quality.960x0.jpg -rw-r--r-- 1 www-data www-data 461206 May 8 10:45 alyssa-milano-high-quality.jpg File sizes appears to be appropriate according to the dimensions. Any sort of help is appreciated. Thanks Link to comment Share on other sites More sharing options...
Shehbaz Posted May 8, 2014 Author Share Posted May 8, 2014 Looks like it is an issue with the mounted drive for s3. So images are not written on it. Any idea how to solve this? Link to comment Share on other sites More sharing options...
Shehbaz Posted June 3, 2014 Author Share Posted June 3, 2014 The solution was to change code so it writes the image to tmp or any other folder and then copy it to s3 mounted folder. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now