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?

]]>
(Next Post) »

9 Commentsto When a rectangular (non-square) image is set as an icon, it gets aligned to the top-left.

  1. Anonymous says:

    < ![CDATA[

    I suppose you could edit the picture and add transparent bars to make it square

    ]]>

  2. Anonymous says:

    < ![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

    ]]>

  3. Anonymous says:

    < ![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.

    ]]>

  4. Anonymous says:

    < ![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!

    ]]>

  5. Anonymous says:

    < ![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

    ]]>

  6. Anonymous says:

    < ![CDATA[

    My before mentioned script does:


    – not crop but scale


    – not need tasker


    – work for higher and for wider images.

    ]]>

  7. Anonymous says:

    < ![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?

    ]]>

  8. Anonymous says:

    < ![CDATA[

    It will not disort, it will leave empty space l/r or t/b.


    (Is this called letterboxing?)

    ]]>

  9. Anonymous says:

    < ![CDATA[

    thanks, sounds good, will give it a try!

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *