PHP zoom gif and PNG diagram transparent background turn black solution, zoom png_php Tutorial

Source: Internet
Author: User
Tags transparent image

PHP zoom GIF and PNG map transparent background Turn black resolution, zoom PNG


Work needs to scale some GIF and then go to Imagecopymerge, but found that using the Imagecreatetruecolor and imagecopyresampled found the background map is not correct, the original transparent background image becomes black, Later found to make some changes can be:

And then the imagecopyresampled and the Imagecopymerge, there's no problem.


In the dance, the transparent ring is in GIF format. Why do I use beauty 美图秀秀 to turn PNG into a GIF background it's black. It's transparent.

The logo is the icon after the success. So you're not showing the transparency. Press OK will not become transparent. You need to deal with it again. Well, I mean, it's not like you've changed the format of the picture, there's no basemap. Instead, remove the basemap and replace it with a transparent image format, which is a transparent image. If you don't, you can put the picture up and I can help you get rid of it.

Why do PNG format images become opaque after they are converted to GIF colors?

It depends on how you convert, is directly renamed can not, you have to use PS or U5 and other software to save.

http://www.bkjia.com/PHPjc/894135.html www.bkjia.com true http://www.bkjia.com/PHPjc/894135.html techarticle PHP zoom GIF and PNG map transparent background into black solution, zoom PNG work need to zoom some GIF and then go to Imagecopymerge, but found using Imagecreatetruecolor and I ...

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.