CStrategies
Member
We've installed PECL on the server and enabled imagemagick processing, and I've created an addon that helps support using animated gifs as avatars. Of course, we're running into the simple problem that it takes a huge amount of server resources to resize a gif (100% of one CPU for one image). Not just when they're uploaded as avatars but when they're attached in forums or resources or anywhere else.
So, maybe this is a stupid question and shows my lack of expertise in image processing -- but do we need to resize the avatars? As I understand it, images like avatars are resized into 5 different sizes for optimal display in different areas of the site. But to reduce the processing load, couldn't the site take the gif image as-is with no resizing, and then use css in various templates on the site to size the image? I guess the down side here would be longer page loads, so maybe I'm answering my own question.
Or, a more general question - how do admins keep their imagemagick sites from crashing if users are allowed to upload gifs?
So, maybe this is a stupid question and shows my lack of expertise in image processing -- but do we need to resize the avatars? As I understand it, images like avatars are resized into 5 different sizes for optimal display in different areas of the site. But to reduce the processing load, couldn't the site take the gif image as-is with no resizing, and then use css in various templates on the site to size the image? I guess the down side here would be longer page loads, so maybe I'm answering my own question.
Or, a more general question - how do admins keep their imagemagick sites from crashing if users are allowed to upload gifs?