WordPress.org

Ready to get started?Download WordPress

Forums

Custom Content Type Manager
[resolved] Bug found: [+width+], [+height+] for PNG and GIF (3 posts)

  1. johnwai
    Member
    Posted 1 year ago #

    Hi guys,

    First, thank you so much for making this fantastic plugin!

    Problem: When using [+width+] or [+height+] for .png or .gif, it always return not the actual values.

    Solved: Under file: filters / gallery.php

    Lines 59 + 64:

    elseif( $image_type == IMAGETYPE_GIF ) {
    				$this->image = imagecreatefromgif($r['guid']);
    			}
    			elseif( $image_type == IMAGETYPE_PNG ) {
    				$this->image = imagecreatefrompng($r['guid']);
    			}

    Change to:

    elseif( $image_type == IMAGETYPE_GIF ) {
    				$this_image = imagecreatefromgif($r['guid']);
    			}
    			elseif( $image_type == IMAGETYPE_PNG ) {
    				$this_image = imagecreatefrompng($r['guid']);
    			}

    Hope this help.

    Cheers
    John

    http://wordpress.org/extend/plugins/custom-content-type-manager/

  2. fireproofsocks
    Member
    Plugin Author

    Posted 1 year ago #

    Bug tracker please. Thanks.

  3. fireproofsocks
    Member
    Plugin Author

    Posted 1 year ago #

    Added: https://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=492

    In dev version now. Committed revision 713016.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic