Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-18796

eZIE resize width & height are interchanged

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.6.0
    • 4.4.0, 4.5.0
    • None
    • eZ Publish Enterprise 4.4
      eZ Image Editor 1.0

    Description

      In eZImageEditor class eZIEImageToolResize there is a function call in line 45

      static function resize( $src, $dst, $width, $height )
      {
          $imageconverter = new eZIEezcImageConverter( self::filter( $height, $width ) );
          $imageconverter->perform( $src, $dst );
      }
      

      But in the same class the filter fuunction has an constructer with changed patameters width & hight

      static function filter( $width, $height )
          {
              return array(
                  new ezcImageFilter( 
                      'scale',
                      array( 
                          'width'     => intval( $width ),
                          'height'    => intval( $height ),
                          'direction' => ezcImageGeometryFilters::SCALE_BOTH 
                      )
                  )
              );
          }
      

      So the result is wrong image resizing.

      Attachments

        Activity

          People

            chen chen
            rc@ez.no rc@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: