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 vote

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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

91 views 0 1
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