How can I limit the height and width fields of the image field I added to the panel, so that only images of 1000x1000 size can be added, any image added above or below it will not be accepted and will give an error?
Batuhan
10/17/2024, 10:06 AM
?
s
Steffen Nielsen
10/18/2024, 8:38 AM
I think i need to understand your problem a bit more. Is it when a user uploads a file you wan't to have this validation done or is it somewhere else?
When the user uploads the image and presses the save button
s
Steffen Nielsen
10/23/2024, 11:19 AM
We had the same problem, or not directly the same, but we wanted to create a blurhash value for uploaded images. What we did, was to hook into the MediaSavedNotification and the do the preprocess afterwards. Perhaps you can use one of the Notification streams to do your operation?