Support » Plugin: Custom Content Type Manager » Bug found: [ width ], [ height ] for PNG and GIF

  • Resolved johnwai

    (@johnwai)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug found: [ width ], [ height ] for PNG and GIF’ is closed to new replies.