When a rectangular (non-square) image is set as an icon, it gets aligned to the top-left.
When a rectangular (non-square) image is set as an icon, it gets aligned to the top-left. Is there any way to set the alignment as middle-center?
]]>
< ![CDATA[
I suppose you could edit the picture and add transparent bars to make it square
]]>
< ![CDATA[
I download jpgs off the internet (album art) and most of the time it is square. about 10% of the time it is non-square. is there a way to detect the dimensions of the jpg and crop the picture using LL scripts?
if not, the easiest way would be to change the default icon alignment from top-left to middle-center
]]>
< ![CDATA[
There is just the thing you need in my ‘script only’-template in the wiki.
In that template there is a script called ‘IMGcomm’.
The only difference may be, it has image size as input from the Gnews-feed.
]]>
< ![CDATA[
Wern-Yuen Tan indeed changing the default alignment would be the right thing to do, but I am worried about the side effect it could have on existing setups. The current behavior need to be preserved for existing items and the new one should be activated only for new items or modified items, or… yet another switch somewhere!
]]>
< ![CDATA[
Pierre Hébert a switch would be great. I managed a workaround using createImage and getHeight / getWidth but need to pass these on to tasker to do the image crop. Would be great if there was native image crop functionality in LL
]]>
< ![CDATA[
My before mentioned script does:
– not crop but scale
– not need tasker
– work for higher and for wider images.
]]>
< ![CDATA[
Jappie Toutenhoofd thank you, but if the x/y dimensions are quite different, wouldn’t the scale effect distort the image? any way to crop using LL script?
]]>
< ![CDATA[
It will not disort, it will leave empty space l/r or t/b.
(Is this called letterboxing?)
]]>
< ![CDATA[
thanks, sounds good, will give it a try!
]]>