[wp-hackers] Thumbnail creation question

Diana K. C dianakac at gmail.com
Mon Jul 2 16:39:48 UTC 2012


My coding skill is quite... lacking, but you gave me a hint: maybe we can 
create the image size on some conditions, avoiding the creation for all 
images sent...

You said:

> But, as far as I know, there is no option to specify an image size only 
> for featured images.

There is in Settings > Midia, but the creation will be for every image sent 
as always. I wish I could order a 2nd featured image based on the first, but 
for this file only.


----- Original Message ----- 
From: "Fabien Quatravaux" <fabien.quatravaux at 1nterval.com>
To: <wp-hackers at lists.automattic.com>
Sent: Monday, July 02, 2012 4:26 AM
Subject: Re: [wp-hackers] Thumbnail creation question


Hi Diana
I have the same request : I often use custom image sizes for my theme,
and those custom sizes are only seldom used. But, as far as I know,
there is no option to specify an image size only for featured images.

Instead of having each size created for each uploaded image, wouldn't it
be more clever to create the image only the first time it is needed ? I
mean, have a hook in wp_get_attachment_image_src and create the image
here if it does not already exists ?

Fabien

Le 01/07/2012 14:00, wp-hackers-request at lists.automattic.com a écrit :
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 30 Jun 2012 22:33:07 -0300
> From: "Diana K. C" <dianakac at gmail.com>
> Subject: [wp-hackers] Thumbnail creation question
> To: <wp-hackers at lists.automattic.com>
> Message-ID: <005b01cd5729$79cf0b20$2200a8c0 at TITA>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I need to add an image size (I know there is add_image_size), but Is there 
> someway to prevent the new size be used for all images sent?
>
> I would like to have an image size for only the Featured image, not all 
> images I send, thus saving some server space.
>
> ------------------------------
>

-- 

*Fabien Quatravaux*
Développeur
LD : 06 20 20 54 97

logo <http://www.1nterval.com/> *Interval*
/Métiers d'art digital/
www.1nterval.com <http://www.1nterval.com/>

Afin de contribuer au respect de l'environnement,
merci de n'imprimer ce courriel que si nécessaire.



_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers 



More information about the wp-hackers mailing list