Okay
  Public Ticket #155105
logo resizing
Closed

Comments

  • George started the conversation
    Hi there, I'm looking to make adjustments to the logo resize function. I'm wondering if I can make adjustments so the logo appears at a slightly different size. As I'm sure you know, when you resize a png that has fine lines, the image can get blurry when resized. However, if you can choose which height your logo resizes to, it's likely you can find a size where the logo is less blurry. I wonder if I can change the percentage of the logo resize to try to get a sharper logo. Thank you
  •  1,077
    ThemeNectar replied

    Hey George!

    Open up the init.js file located in the js folder and search for this section: 

    if (logoHeight >= 40 && logoHeight < 60) shrinkNum = 8;
    else if (logoHeight >= 60 && logoHeight < 80) shrinkNum = 10;
    else if (logoHeight >= 80 ) shrinkNum = 14;

    Simply adjust the value for shrinkNum in the conditional your logo height fits into :)

    Cheers

  • George replied

    Brilliant.  Thank you!