Disable Logo scaling

Hi all,

in JIRA 4 I used a 670x78 logo and it looks good also in the new JIRA 5, but now if I try to change it it will be scaled automatically to 412x42 as it correctly say when I upload it.

It is possible to disable scaling to see it in its original size?

2 answers

1 accepted

1 votes

You shouldn't change jpm.xml, otherwise you'll lose your changes on app update.

Instead you should modify <home>/jira-config.properties (create the file if it doesn't exist):

jira.lf.logo.url = /url/to/mylogo.gif
jira.lf.logo.width = 423
jira.lf.logo.height = 54

But the other bits of the above answer are correct, you need to restart, and hit the restore default thing.

Only to add an example of logo URL that I used:
jira.lf.logo.url = /images/my-logo.png

That in my host is:

/opt/tomcat_jira/webapps/jira/images/my-logo.png

Doesn't seem to work with JIRA 6.0.6 anymore. Any other suggestions?

I've found a workaround to fix this issue, though it's far from optimal:

  1. Upload the logo you want to "${JIRA_INSTALL_DIR}/images/"
  2. Go to "${JIRA_INSTALL_DIR}/jira/atlassian-jira/WEB-INF/classes/"
  3. Edit "jpm.xml"
  4. Edit the fields shown in the code snippet below to match your logo path, width and height.
  5. Restart JIRA (using "${JIRA_INSTALL_DIR}/bin/{stop/start}-jira.sh")
  6. Go to the Look&Feel settings and upload a new logo (if no custom logo was currently defined)
  7. Reset the logo to the default value, and you should have the logo with dimensions as defined in "jpm.xml"

AFAIK, the "admin-editable" flag for height and width should enable the field for editing in the Look&Feel settings tab, but unfortunately that doesn't work for me.

Oh well, if you only have to change your logo once this should work. I don't know if this survives an update though.

&lt;property&gt;
            &lt;key&gt;jira.lf.logo.height&lt;/key&gt;
            &lt;default-value&gt;71&lt;/default-value&gt;
            &lt;type&gt;uint&lt;/type&gt;
            &lt;admin-editable&gt;true&lt;/admin-editable&gt;
                        &lt;sysadmin-editable&gt;true&lt;/sysadmin-editable&gt;
        &lt;/property&gt;
        &lt;property&gt;
            &lt;key&gt;jira.lf.logo.url&lt;/key&gt;
            &lt;default-value&gt;/images/companylogo.png&lt;/default-value&gt;
            &lt;type&gt;string (url)&lt;/type&gt;
            &lt;requires-restart&gt;false&lt;/requires-restart&gt;
            &lt;admin-editable&gt;true&lt;/admin-editable&gt;
                        &lt;sysadmin-editable&gt;true&lt;/sysadmin-editable&gt;
        &lt;/property&gt;
&lt;property&gt;
            &lt;key&gt;jira.lf.logo.width&lt;/key&gt;
            &lt;default-value&gt;200&lt;/default-value&gt;
            &lt;type&gt;uint&lt;/type&gt;
            &lt;admin-editable&gt;true&lt;/admin-editable&gt;
                        &lt;sysadmin-editable&gt;true&lt;/sysadmin-editable&gt;
        &lt;/property&gt;

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,981 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot