Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

why if im add size like :

add_image_size( 'featured1', 466, 316, false);
add_image_size( 'featured2', 466, 260, false);

the seconde size Does not generated

What is the problem ?

share|improve this question
    
Did yo uploaded image after you setup image sizes? –  Sisir May 25 '12 at 13:47
    
@Sisir yes of course –  mod May 25 '12 at 13:53

2 Answers 2

up vote 1 down vote accepted

Probably because your sizes both have the same width, and you have it set to "proportional crop", which won't necessarily crop to your exact dimensions. (See the Codex)

In all likelihood, it is actually creating both images--but they're both the exact same size, so one overwrites the other :)

Try changing the last param to "true".

add_image_size( 'featured1', 466, 316, true);
add_image_size( 'featured2', 466, 260, true);
share|improve this answer
    
big thanks now working good –  mod May 25 '12 at 15:59

This is a known bug. The problem is that you have one of the dimensions exactly the same for both intermediate sizes.

I submitted a patch about a year ago; just waiting for it to make its way into core. It got punted to "future release".

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.