Custom thumb size url for Smugmug
-
This is such a great plugin – thank you so much Sayontan.
For Smugmug the plugin allows three default thumbnail sizes (tiny, thumb, small). These are set by Smugmug and are quite limiting, for example if you want to display square thumbnails larger than 150px. But Smugmug allows custom sizes and I’m trying to work out how to tweak Photonic_SmugMug_Processor.php to hard code in the custom thumbnail size we would like to display. It would be ideal if this could be an option in the admin settings of the plugin so others could benefit from it as well but hard coding it would work for us at the moment.
Details are here: https://help.smugmug.com/customer/en/portal/articles/93264 but essentially instead of calling “Th” or “S” in the image URL it’s possible to call 500×500 (if you want the original aspect ratio with the longest edge being 500) or 500×500! (including the ‘!’ if you want to crop the image so it is actually 500×500 sized). The size is referred to before and after the image name in the url.
Example:
Default ‘Th’ size url: https://cmac.smugmug.com/SmugMug/Support-Heroes-painted-faces/i-99kRCRg/4/Th/IMG_0292-Th.jpg
Custom 500×500 cropped url: https://cmac.smugmug.com/SmugMug/Support-Heroes-painted-faces/i-99kRCRg/4/500×500!/IMG_0292-500×500!.jpg
(without the ! the image won’t get cropped, so the resulting example image would be 500×447)
Would anyone know which bit of the plugin code we would need to tweak? Thanks so much in advance.
Matt
- The topic ‘Custom thumb size url for Smugmug’ is closed to new replies.