I've changed the max width/height propery on the "Upload" datatype to 400, still, the thumbnail being generated is always 100 pixels in height or width.
It's hard coded in code, so this one will always be created, but you may create others through the datatype settings. Other sizes must be specified as a comma separated string (it's a max width/height settings, depending on layout of the image)
If you're keen on code, check code for uploadField
Ah, thanks, I get it now. I see that the larger thumbnail is in fact created, but the backoffice only shows the smallest one in the document I'm working in.
I'll have a look to see if I can change the default size. Might not be necessary for the customer though.
Thanks Doug, I am already using ImageGen on the frontend, great stuff :)
Might be able to use it in the backoffice as well. Just need to have a quick peak at the source code for these datatypes.
I am also creating a custom datatype that will fetch another image with a custom width/height, so it might be very handy to use ImageGen again (as the size probably has to be exactly right).
Upload field max width/height
I've changed the max width/height propery on the "Upload" datatype to 400, still, the thumbnail being generated is always 100 pixels in height or width.
How do I get it to make a larger thumbnail?
Sebastiaan,
It's hard coded in code, so this one will always be created, but you may create others through the datatype settings. Other sizes must be specified as a comma separated string (it's a max width/height settings, depending on layout of the image)
If you're keen on code, check code for uploadField
Cheers;
/Dirk
Ah, thanks, I get it now. I see that the larger thumbnail is in fact created, but the backoffice only shows the smallest one in the document I'm working in.
I'll have a look to see if I can change the default size. Might not be necessary for the customer though.
Depending on the situation, either the ImageGen or ImageCropper packages might be helpful.
cheers,
doug.
Thanks Doug, I am already using ImageGen on the frontend, great stuff :)
Might be able to use it in the backoffice as well. Just need to have a quick peak at the source code for these datatypes.
I am also creating a custom datatype that will fetch another image with a custom width/height, so it might be very handy to use ImageGen again (as the size probably has to be exactly right).
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.