Hello, Im trying to register new image sizes, which works fine for sizes smaller than 640x640. But if i try to register a bigger size, it allways shows up with a longer-side of 640px. here my code...
<?php
add_image_size('page_width', 554, 9999, false);
add_image_size('gallery_width', 383, 287, true);
add_image_size('full_width', 796, 9999, false);
function custom_daku_image_sizes($sizes) {
$myimgsizes = array(
"page_width" => __( "Page" ),
"gallery_width" => __( "Gallery-thumb" ),
"full_width" => __( "Full-Width" )
);
$newimgsizes = array_merge($sizes, $myimgsizes);
return $newimgsizes;
}
add_filter('image_size_names_choose', 'custom_daku_image_sizes');
?>
Does anyone know this problem? ore knows how to solve it?
thx