PHP Thumb » Help & Bugs » Bugs

preserve transparency in png and gif

(6 posts)
  1. tronics
    Member

    Hello!

    Everything works very well so far, but I found problems with transparency.

    $_filename="nicename.png";
    $format="png";
    $thumb->resize($width,$height')->save($_filename,$format);
    $thumb = PhpThumbFactory::create($_filename);//take the cached Thumb.
    $thumb->show();

    When I tried to resize and save this image here with png and transparency it turns out to have a black background (the same as when saved in jpg Format)

    Try this image to test it:
    http://www.atomikframework.com/assets/images/logo.png

    Do I make any mistake, or is this a bug?

    Thank you.

    Posted 11 months ago #
  2. tronics
    Member

  3. I put some initial support into the library for transparency, but I'll take a look and see if anything's up with the library. If not, I'll take a look at the code you've supplied and see if it helps solve any issues :)

    Posted 11 months ago #
  4. tronics
    Member

    Thanks Ian, you are great :)

    Posted 11 months ago #
  5. tronics
    Member

    Hi Ian!

    Can you please give some feedback on this?
    It would be awesome to be able to work with transparency soon :)

    Thanks.
    tronics

    Posted 10 months ago #
  6. Hey,

    I've been pretty swamped with the 9-5, but like I said, there is some initial support for transparency already baked in. Take a look at some of the options over at http://trac.gxdlabs.com/projects/phpthumb/wiki/Docs/GettingStarted#Options and see if those can hold you over until I get a chance to put some more time into this :)

    Posted 10 months ago #

RSS feed for this topic

Reply

You must log in to post.