Announcement

Collapse
No announcement yet.

Image Transparency Displays as Blue

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Image Transparency Displays as Blue

    Hi,


    I generated a phpThumb image via this code:

    Code:
    <?
    $src_file = dirname(__FILE__).'/original.jpg';
    $tgt_file = dirname(__FILE__).'/target.gif';
    
    	require_once( dirname(__FILE__).'/phpthumb.class.php' );
    
    	$thumb = new phpThumb();
    	$thumb->setSourceFilename( $src_file );
    	$thumb->setParameter( 'w', '118' );
    	$thumb->setParameter( 'h', '158' );
    	$thumb->setParameter( 'f', 'gif' );
    	$thumb->setParameter( 'config_allow_src_above_docroot', true );
    	$thumb->setParameter( 'fltr', array('ric|10|10') );
    	$thumb->GenerateThumbnail();
    	$thumb->RenderToFile( $tgt_file );
    This will resize it to a 118x158 gif with rounded corners...

    What does this have to do with IrfanView you ask me... Well, the resulting image is displayed correctly, but the transparent color is some light blueish.
    When I watch the gif in both IE & FF it's displayed with the correct transparency.

    I zipped & added the files in this thread (as I am afraid the BB will do something with the original images) + a screenshot how it looks like in my IrfanView here.


    Greetings
    Attached Files

    #2
    Go to Options, Properties, JPG/PCD/GIF and check "Show transparency in non-animated gif too." If that is not checked, whatever is your background transparency colour for the image will be displayed in the corners.
    Before you post ... Edit your profile • IrfanView 4.67 • Windows 10 Home 19045.2486

    Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

    Comment

    Working...
    X