• Hi,

    is this the intended behaviour, that pwad_get_image returns no image, if the requested size is larger than the original size of the image?

    For example I have the following size:

    pwad_add_image_size( array(
      'name' => 'Square',
      'key' => 'square',
      'width' => '1200',
      'height' => '1200',
      'crop' => true,
      'thumbnails' => array(
        array(
          'name' => 'Medium',
          'key' => 'medium',
          'width' => '800',
          'height' => '800',
        ),
        array(
          'name' => 'Small',
          'key' => 'small',
          'width' => '400',
          'height' => '400',
        ),
      ),
    ) );

    My image is 1024*860px.

    If I request the image with $square_large = pwad_get_image( $img_ID, 'square' );, I get nothing back.

    $square_large = pwad_get_image( $img_ID, 'square-medium' ); returns the cropped image in medium size.

    Is there a way to always get an image back in largest possible size (in this example 860*860) or at least in the next possible size based on the thumbnails (800*800)?

    Thanks!

  • The topic ‘pwad_get_image returns no image if resized version is larger than image’ is closed to new replies.