syamilmj / Aqua-Resizer

Resize WordPress images on the fly
502 stars 208 forks source link

what happened when image size smaller than crop size #42

Closed amjad62 closed 10 years ago

amjad62 commented 10 years ago

when image size smaller than crop size so image will not show. There is any solution for it image will remain show on crop size. Thanks

lumberman commented 10 years ago

I found this unpleasant behaviour too after released my theme. I think there should be some solution?

lumberman commented 10 years ago

Just found that https://github.com/bfintal/bfi_thumb can resize images up.

totpero commented 10 years ago

Use like this: <?php echo aq_resize( $url, $width, $height, $crop, $single, $upscale ) ?>

<?php echo aq_resize( wp_get_attachment_url( get_post_thumbnail_id() ), 500, 200, true,true,true ); ?> Crop also needs to be true. Wiki wasn't updated to the last version.