Today at the company, the manager lets make a scrolling subtitle. However, you are not allowed to generate GIF images. So the internet to find Gifencoder this class library. Really good, but, the application process also appeared some problems, now
Extended to animated GIF images with PHP installation ImagickAll along, PHP processing pictures are in the mainstream of GD, until recent years, the use of Imagick gradually become more.GD is usually used to scale the image, to the image of water
PHP uses the Php_imagick_st-q8.dll class library, the JPG images connected to generate animated GIF images, you need to download the Php_imagick_st-q8.dll, file, and configure php.ini file, enable Php_imagick_ St-q8.dll. The configuration method is
The following post-processing source code:
Copy CodeThe code is as follows:
Require_once ("gifencoder.php"); Loading encoded files
$gif = new Gifencoder (); Instantiate a GIF decoding object
$gif->load ("Test.gif"); Load the GIF image to decode
for
The following post-processing source code:
Copy CodeThe code is as follows:
Require_once ("gifencoder.php"); Loading encoded files
$gif = new Gifencoder (); Instantiate a GIF decoding object
$gif->load ("Test.gif"); Load the GIF image to decode
for
I have read discuz. I don't like it. It's too troublesome for pictures and fonts.
The method I use does not require additional images, fonts, or php support libraries, because my method is to directly use php functions such as ord and chr to operate
Look first.
The path to the font and font files needs to be set in $fontfilepath and $fontfilename in the class. Such as:Copy the Code code as follows:private static $FontFilePath = "static/font/"; Location relative to this code fileprivate
PHP compositing or creating GIF animations
1. First, you need to confirm the GD library is normal.
?
2. How to compose a picture, make sure to place the exploded image in the frames folder.
?
3. GIFEncoder.class.php class
?
?
"Does not supported
First you need to verify that the GD library is normal, and if it is a composite picture, make sure you put the exploded picture in the Frames folder. GIFEncoder.class.php class
? Class Gifencoder {var $GIF = "gif89a"; /* GIF
Php merging or creating GIF animation 1. First, check whether the GD Library is normal .? 2. how to synthesize images? make sure that the decomposed images are placed in the frames folder .? 3. GIFEncoder. class. php class ?? & Lt ;? ClassGIFEncoder
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.