Create different sets of image sizes based on the context an image is uploaded (2 posts)

  1. rkoller
    Posted 2 years ago #

    I am struggling if the following would be possible to accomplish with WordPress. Is there a way, based on which context an image is uploaded inside the WordPress media uploader (in which post type and advanced custom field), that different sets of image sizes are created.

    Means if you upload an image inside the post type "portfolio" and the custom field "overview image" you would create e.g. 3 images ( 250x250 , 450x450, 650x650) and for the custom field "worksamples" in post type "portfolio" you would create 5 images ( 350x 80, 450x120, 550x200, 650x240, 920x320) and so on.

    so is there a way to bypass the standard automatic generation of the standard images as well as the add_image_size ones and create custom image size sets based on the posttype and custom field type? so that you don't generate 20 image size versions each upload but only the sizes necessary in that layout context.

    Would something like that basically possible extending WordPress behaviour? Best regards Ralf

  2. J M
    Posted 2 years ago #

    This post on WPSE contains a useful plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic