上载图像时,是否可以选择要上载的图像大小?
E、 g.,我有这些图像尺寸:
// Set Media Sizes
set_post_thumbnail_size( 864, 486, true ); // 864 pixels wide by 486 pixels tall, crop from the center
add_image_size( \'klein\', 300, 169, true); // 300 pixels wide by 169 pixels tall, crop from the center
add_image_size( \'smartphone\', 640, 360, true); // 640 pixels wide by 360 pixels tall, crop from the center
add_image_size( \'thumbnail-normal\', 864, 9999); // 864 pixels wide and unlimited height
add_image_size( \'database-thumbnail-small\', 640, 117, true); // 640 pixels wide by 117 pixels tall, crop from the center
add_image_size( \'database-thumbnail-normal\', 1366, 249, true); // 1366 pixels wide by 768 pixels tall, crop from the center
add_image_size( \'database-thumbnail-big\', 1920, 350, true ); // 1920 pixels wide by 350 pixels tall, crop from the center
当我在媒体上传器中上传图像时,我希望能够选择我希望该图像实际上传的图像大小。因为我不需要每个图像都有所有的图像大小,但我确实需要使用我网站上的每个图像大小。这将占用大量不必要的空间。