![]() ![]() This example filters the image resizing dimensions to force WordPress to crop thumbnails by keeping the top of the image, instead of the default center. Retrieves calculated resize dimensions for use in WP_Image_Editor. Some functionality requires API to exist, so some PHP version may lose out support. The only supported image types are PNG, GIF, and JPEG. If the file going in is PNG, then the resized image is going to be PNG. Image_resize_dimensions() wp-includes/media.php Description The PNG transparency will be preserved using the function, as well as the image type. ![]() View all references $output = apply_filters( 'image_resize_dimensions', null, $orig_w, $orig_h, $dest_w, $dest_h, $crop )
0 Comments
Leave a Reply. |