I noticed in Umbraco if I upload an image, a thumbnail is generated, which is great! But....how do I access it in my XSLT file? I can access the main image fine but not the thumb nail as it as "_thumb" added to the end.
I guess you could do some string manipulation in the xslt to add the _thumb part to the filename as they are both stored in the same folder. The auto-generated thumb image is really only meant for the Umbraco backend and is not (to my knowledge) stored in the xml.
You can use ImageGen or Image Cropper if you want specific sizes of images, e.g. to crop an image to 100x100px
When you specify thumbnail sizes for width/height in Upload datatype settings, it will resize from the largest proportion.. You can get these generated thumbnails this way:
Image thumbnail
HI all,
I noticed in Umbraco if I upload an image, a thumbnail is generated, which is great! But....how do I access it in my XSLT file? I can access the main image fine but not the thumb nail as it as "_thumb" added to the end.
Does anyone have any idea to help with this?
Thanks
I guess you could do some string manipulation in the xslt to add the _thumb part to the filename as they are both stored in the same folder. The auto-generated thumb image is really only meant for the Umbraco backend and is not (to my knowledge) stored in the xml.
For creating image thumbnails in your pages I recomend this great package: http://our.umbraco.org/projects/website-utilities/imagegen
After installing the package the following snippet will produce a thumb with the longest side set to 100 px. Check documentation for more examples :)
Hi Louis
You can use ImageGen or Image Cropper if you want specific sizes of images, e.g. to crop an image to 100x100px
When you specify thumbnail sizes for width/height in Upload datatype settings, it will resize from the largest proportion..
You can get these generated thumbnails this way:
Where 250 is the (width/height) set in the settings.
Bjarne
is working on a reply...