LogoManager 1.0.0.3 [27-11-2022] (10 Viewers)

azzuro

Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    auto reply :
    const bool preserveAspectRatio = true;
    your test is on source logo 200x200 ???
     
    Last edited:

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    this is what i mean, for logo source aspect ( @vuego : what do you think )
    same aspect for all repo, and as vuego say, the background effect is applyed with your plugin.
    but we must add an space blank, set to 10 pixel for information (not optimized ).
    before, depend on repo style ( maybe add inside LogoManager.config an node "cropped style" )
    conception1.b.png
     

    Vasilich

    Portal Pro
    August 30, 2009
    3,394
    1,170
    Germany, Mayence
    Home Country
    Russian Federation Russian Federation
    your test is on source logo 200x200 ???
    i have tested it on all possible sources, with different sizes and aspect ratios.

    this is what i mean, for logo source aspect ( @vuego : what do you think ) same aspect for all repo, and as vuego say, the background effect is applyed with your plugin. but we must add an space blank, set to 10 pixel for information (not optimized ). before, depend on repo style ( maybe add inside LogoManager.config an node "cropped style" )
    don't get a word from the sentences above, sorry. Can you rephrase it?
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    sorry for bad explaination :(
    my proposal is to have logos source ( available on repo package). cropped to logo size + 10pix of external border.
    why 10 pix ( the 10pix are not locked, it's only for information, can be 20 / 30 / 50 ... ) ! : because for doesn't have logo on the border of final result.
    and we can apply all effect that user / designer want ! with your plugin.

    we can also cropped source file to logo border without 10pix of extra-border, but it's more work for you to add, than logo source should be less to final logo size - glow effect.
    logo size = Final logo size - Glow size ( set in design.setting )
    but, i have say, it's many work for you !!
     

    Vasilich

    Portal Pro
    August 30, 2009
    3,394
    1,170
    Germany, Mayence
    Home Country
    Russian Federation Russian Federation
    you can define resulting size (the size that logo will have after applying resize effect if it doesn't fit in dimensions that you have declared with MinX/MaxX/MinY/MaxY).
    e.g. you define resize effects with minXY=170 maxXY=200 resizedXY=180 (makes sense for squared logos 200x200, so resulting logo will have (200-180)/2=10 pixels free ("extra-border" in your terminology) on each side if resized). Then :
    • logo 200x200 will not be resized
    • logo 200x150 will not be resized
    • logo 150x200 will not be resized
    • logo 100x150 will be resized to 120x180
    • logo 150x100 will be resized to 180x120
    • logo 250x250 will be resized to 180x180
    • logo 250x150 will be resized to 180x108
    • logo 150x250 will be resized to 108x180
    Good enough? And if you use non-squared logos - then define minX/maxX and minY/maxY appropriately, so you have control over both dimensions and can even set different "extra-border" for width and height!
     
    Last edited:

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    Oh, you lost me :p
    let me time to understand what you mean :)
    i need to understand " MaxXY=170 MaxXY=200 ResizedXY=180 "
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    ok, i think i have understood
    let me try, your setup has many setting, now !
    if i understand good :
    logo 210x170
    for use 200x150 background size. can i do the next setting ?
    if logo X = 210 > 200 OR Y = 170 > 150 = Resizing from the more restrictive
    <effect enabled="yes" type="resize" minX="200" maxX="*" resizedX="200" minY="150" maxY="*" resizedY="150" />
    the result should be 184x150p ?

    for use 200x200 background size. can i do the next setting ?
    if logo X = 210 > 200 OR Y = 170 > 200 = Resizing from the more restrictive
    <effect enabled="yes" type="resize" minX="200" maxX="*" resizedX="200" minY="200" maxY="*" resizedY="200" />
    the result should be 200x162p ?
     

    Vasilich

    Portal Pro
    August 30, 2009
    3,394
    1,170
    Germany, Mayence
    Home Country
    Russian Federation Russian Federation
    if logo X = 210 > 200 OR Y = 170 > 150 = Resizing from the more restrictive
    <effect enabled="yes" type="resize" minX="200" maxX="*" resizedX="200" minY="150" maxY="*" resizedY="150" />
    the result should be 184x150p ?
    Yes. But as wildcards are not supported, I recommend to set max value to resolution of your background:
    XML:
    <effect enabled="yes" type="resize" minX="200" maxX="200" resizedX="200" minY="150" maxY="150" resizedY="150" />


    for use 200x200 background size. can i do the next setting ? if logo X = 210 > 200 OR Y = 170 > 200 = Resizing from the more restrictive
    <effect enabled="yes" type="resize" minX="200" maxX="*" resizedX="200" minY="200" maxY="*" resizedY="200" />
    the result should be 200x162p ?
    yes, with same notes as i did above for wildcards. And for squared background (i.e. width=height) you also can use simplified settings
    XML:
    <effect enabled="yes" type="resize" minXY="200" maxXY="200" resizedXY="200" />
    with the same effect.

    Still, I recommend to use some margins for resizing, because if you use your settings as above, then any image, that is not 200x200, will be scaled to 200x200. I believe that you should accept smaller sizes (e.g. down to 180x180), so resulting image will not be unnecessarily scaled. Example: try to resize image 197x197 to 200x200 in any graphic editor - the result will not be so sharp as original.
     
    Last edited:

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    ok, for MinXY i have understood fine.
    this is for reduce only ? or can work also for enlarge ( if logo is small ) ?
    <effect enabled="yes" type="resize" minX="200" maxX="200" resizedX="200" minY="150" maxY="150" resizedY="150" />
     

    Users who are viewing this thread

    Top Bottom