You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if there was a way to store the actual dimensions of each image style in the database. Maybe we can add a column called {attachment_name}_dimensions, and save a serialized array representing the physical sizes for each style, for example:
The image dimensions are required to use the great photoswipe.js library. I managed to implement this myself in a project using a very less-than-ideal workaround involving a direct database right of the dimensions inside the closure defining the style. I was unable to find a better way since there are no events that fire during the image processing process, which means there was no way to hook into it and store the dimensions.
It would be really great to have the library store these dimensions automatically by default.
The text was updated successfully, but these errors were encountered:
It would be great if there was a way to store the actual dimensions of each image style in the database. Maybe we can add a column called {attachment_name}_dimensions, and save a serialized array representing the physical sizes for each style, for example:
The image dimensions are required to use the great photoswipe.js library. I managed to implement this myself in a project using a very less-than-ideal workaround involving a direct database right of the dimensions inside the closure defining the style. I was unable to find a better way since there are no events that fire during the image processing process, which means there was no way to hook into it and store the dimensions.
It would be really great to have the library store these dimensions automatically by default.
The text was updated successfully, but these errors were encountered: