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 ( 250×250 , 450×450, 650×650) and for the custom field “worksamples” in post type “portfolio” you would create 5 images ( 350x 80, 450×120, 550×200, 650×240, 920×320) 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
- The topic ‘Create different sets of image sizes based on the context an image is uploaded’ is closed to new replies.