WordPress – Upload Images and get full sized thumbnail

When you upload an image, wordpress makes thumbnails 150×150, full size, etc. Is there a way to get a full size thumbnail also. I don’t want to use the original image, i need a rendered photo.

I found a code which works to make a custom size thumb, it would be perfect if i can put percentage instead of pixels. Like add_image_size( ‘new-size’, 90% );

if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'new-size', 600, 175, true ); //(cropped)
}
add_filter('image_size_names_choose', 'my_image_sizes');
function my_image_sizes($sizes) {
$addsizes = array(
"new-size" => __( "New Size")
);
$newsizes = array_merge($sizes, $addsizes);
return $newsizes;
}

Thank you.


Source: wordpress

Leave a Reply