Two quick questions.
How does default thumbnail size work?
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails');
set_post_thumbnail_size( 800, 600, true );
}
What does above code really mean?
Does it mean all my thumbnails will be 800x600 or smaller? Because even after setting set_post_thumbnail_size get_post_thumbnail_id($post->ID)
points to full-sized thumbnails (like 2500x1200). I don't really need that big images...
When do WordPress create (custom) thumbnails?
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails');
set_post_thumbnail_size( 800, 600, true );
add_image_size( 'foo', 400, 300, true );
add_image_size( 'bar', 200, 150, true );
}
When are these custom thumbnails created (like image-800x600.jpg / image-400x300.jpg etc.) ? Only during upload process? What if I'm just changing themes to theme based on add_image_size functions with different thumbnail sizes, do I have to reupload all my images to get right sizes? If yes, then using timthumb over add_image_size wasn't that bad idea...
Thanks!