English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need to make php script which can resize and crop animated gifs not losing the animation. Is it possible?

2007-02-12 08:24:06 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

5 answers

Assuming you are using a relatively recent install of PHP and the GD library, you should be able to crop and resize a GIF without incident.

Also, check the user notes on the PHP.net MAN page for imagegif():

http://us2.php.net/manual/en/function.imagegif.php

There are many useful comments and suggestions about animated GIFs there.

2007-02-12 12:14:21 · answer #1 · answered by Anonymous · 0 0

Hi
If you want to crop the image visually, i mean if you want to set the area for your image, you will have to use some JavaScript image croping libraries. After getting the coordinates of the image, regenerate the image by using php's image manipulation functions.
Thanks

2007-02-12 21:01:33 · answer #2 · answered by Atif Majid 3 · 0 0

In photoshop you will desire to have the potential to elect cm, pixels or inches (between others) in case you flow to photograph > photograph length then, if the field which says 'constrain proportions' is ticked, untick it. Then decrease than checklist length (interior the comparable place), next to the containers with the size of the image in you will get drop down menus the place you could elect cm. Then enter 3.5 interior the containers. it is in all probability some cropping will take place to greater healthful that length.

2016-12-17 08:27:06 · answer #3 · answered by ? 4 · 0 0

Resizing a file is relatively simple.

Just change the HEIGHT and WIDTH attributes of the IMG tag.

2007-02-12 08:28:26 · answer #4 · answered by Danltn 4 · 0 0

please help us and speak english

2007-02-12 08:28:19 · answer #5 · answered by Mrs. Crosby 87! 4 · 0 1

fedest.com, questions and answers