The MU forums have moved to WordPress.org

Issue with imageantialias (3 posts)

  1. drmike
    Member
    Posted 19 years ago #

    v712, vhosts = on, site installed up and running

    FreeBSD platform. php 4.4.2

    Greets:

    Having an issue with imageantialias out of the wp-admin/admin-functions.php file and it's a strange one to me.

    I'm trying to upload picture files to the server and am getting the following error:

    Warning: imageantialias(): supplied argument is not a valid Image resource in /home/dariabe/public_html/wp-admin/admin-functions.php on line 868

    Warning: Cannot modify header information - headers already sent by (output started at /home/dariabe/public_html/wp-admin/admin-functions.php:868) in /home/dariabe/

    Line 867-8 is the following:

    if (function_exists('imageantialias'))
    imageantialias($image, TRUE);

    A quick Google search suggests that I'm getting this error because I don't have GD 2 installed but my host (She must be sick of me by know. She gave me SSH access. I'm the only one of her clients to get it. :) tells we that she's running GD 2.0.8.

    A quick looksee of the PHP Manual on the function shows to me that the function call is correct.

    The function that is calling this line is the one that is to create the thumbnail for an uploaded picture. Needless to say, it's not working although the picture is being uploaded and saved to the space.

    It did all work a few versions ago and I had been able to do this previously myself.

    PHP is of a correct version.

    I'm tempted just to comment out those lines.

    Any other suggestions?

    Thanks,
    -drmike

    edit: Commenting out those line do solve the issue but I would love to solve it for good.

  2. drmike
    Member
    Posted 19 years ago #

    Figured it out. The function doesn't support *.png files and there's not enough error catching to catch these in the funtion. (Well that's my guess)

    It's strange though as I've used *.pngs in the past when I did the posting about new themes and they went in fine.

    *shrug*

    I made a trac ticket on the issue. I'm sure Donncha knows more about me on the topic.

  3. drmike
    Member
    Posted 19 years ago #

    Ticket in case anyone is interesting in following along.

About this Topic