How to add more than one set of images
-
Hi found your plugin today. I am already looking for quite some while for a solution to deal with responsive images in WordPress. On none PHP sites I’ve used Picturefill and a own responsive image version so far. The advantage of non PHP versions is the option to write custom picturefill markup snippets dealing with different breakpoints and source files. The one downside I am unable to solve so far in WordPress with the following approach: https://premium.wpmudev.org/blog/diy-truly-responsive-images-on-your-wordpress-website/ is that the automatic image creation for an uploaded file creates all set versions also the unnecessary.
I tried to read through the picturefill.wp docs but i am not completely sure if I am understanding things. There for I wanted to ask if the following would be possible in the plugin.
Lets say you have the following setup ( with total random numbers).
project info picture: (after two breakpoints i would switch from 1/3 column to 2/3 column width – reflecting in the change of width between the second and the third image)
100x100 150x150 600x200 900x300 1200x400
project sample picture:
250x189 560x290 780x340
member picture:
100x300 150x450 300x900
As you can see, even if you exclude the standard thumbnail, medium and large sizes there would be still 11 versions per uploaded image to be created. Would there be a way to create, i call it breakpoint sets. set 1 would be the “project info”, set 2 the “project sample” and set 3 the “member picture” in the example.
So if you add a picture in a certain custom post type and custom field using the add image button or the add row button (for adding more than one image in a repeater list), the breakpoint set for this add location is applied to the uploaded file and only the assigned image versions get created. If breakpoint set 1 would be assigned the created sizes would be as follows:
100x100 150x150 200x600 300x900 400x1200
Would that already theoretically possible within picturefill.wp? Hope i was able to explain it correctly ( a bit difficult in some parts). ;))) Thanks in advance Ralf
- The topic ‘How to add more than one set of images’ is closed to new replies.