Disable Logo scaling

Luca Andreatta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 2, 2012

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
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 4, 2012

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.

Luca Andreatta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 4, 2012

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

Fabian Meier
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 8, 2013

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

1 vote
Remco Overdijk December 4, 2012

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