• Resolved valfreixo

    (@valfreixo)


    Howdy.

    I’m creating a site about music with interviews, video and photo galleries among other features. It’s a very elaborate them with almost all been customized and tailored.

    troughout the template, I’m using several image sizes. When I upload an image, QP creates 3 image sizes. The problem is that I need around 10 diferent sizes. Is there any plugin I can use to do this? Or a way to extend worpdress in way I can code several additional image sizes?

    Thank you in advance

    Zen

Viewing 6 replies - 16 through 21 (of 21 total)
  • This is a great script aesqe, thanks very much.
    As I hoped, if the uploaded image is smaller than one of the specified sizes, that size is skipped.

    However I would like to be able to get a list of the available sizes for a particular image, anyone know how this can be done?

    Cheers.

    I supposed I could use if statements to check the image is available in a certain size.

    if (wp_get_attachment_image_src($attachment->ID, 'image_size_name') {
       //display
    }

    It’s not ideal, but should do the job.

    @aesqe – Thank you for sharing. Exactly what I needed.

    I’ve written a plugin based on this thread. It allows you to easily define additional image sizes, to generate new copies of earlier uploaded pictures and you can also use the newly defined image sizes when editing a post.

    You can find it here: https://www.ads-software.com/extend/plugins/additional-image-sizes/

    thank you, waltervos, your plugin is a lifesaver ??

    @aesqe: That’s good to hear, thanks! Please let me know if you find any bugs (just start a thread about it with the tag additional-image-sizes) or if you have feature requests.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Add more image sizes’ is closed to new replies.