Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to config JIRA display inline image/attach image in BEST FIT method?

I often take screenshot then paste/attach to issue/comment --> because the image is large, JIRA display it un-friendly.

How to config JIRA display inline image/attach image in BEST FIT method? (as same as paste large image into gmail)display image best fit.png

3 answers

1 accepted

5 votes
Answer accepted

Hi Ngueyn,

To the best of my knowledge there is not a means to automatically do this in Jira, as there appears to be in Gmail.

However you can adjust the way that image appears in a comment or description field in Jira without directly modifying the attachment itself.

Instead of using the thumbnail tag such as:

!filename.jpg|thumbnail!

You can use other parameters to determine the specific alignment, spacing, as well as the width and/or height of the image as it appears on the page in Jira.

 

To do this you could use a syntax such as:

!filename.jpg|width=400, height=300!

Of course if you specify both width and height this way, and the source image does not conform to the same aspect ratio, you will find that image will look very skewed.

Instead I would recommend just specifying the width, in my testing this seems like Jira is then automatically scaling the height value to keep it proportional, such as this:

!filename.jpg|width=400!

Of course you might want to use a different value than 400.  It really depends on the size of your screen, you other users screens, as well as the aspect ratio of the image itself.

Sorry there does not appear to be such as simple solution as a 'best fit' button for Jira at this time, but I hope that this work-around might help here.

Let me know what you think.

Andy

Is it possible for a sensible default such as the width of the text box to be pre-filled as the default width of the image?

For many users that have high-resolution screens, this renders all screenshots unusable.

 

Update: I'm seeing that sometimes thumbnail is the default, but I haven't figured out when.

So I'll clarify here: it isn't the default when I'm using the "Visual" way (instead of "Text") of entering comments and descriptions to a Jira issue. The Visual input causes the most annoyance.

 

Thank Andrew Heinzer. Your solution is useful but still not convenience and friendly as gmail. (set width size manually + not allow click on resized image to see full size image)

I still hope JIRA will support BEST FIT inline image in future (similar with paste large image in gmail)

!filename.jpg|width=100%!

Works for me 

Like Albert van Biljon likes this

Where did you add this configuration?

No configuration, just paste everything in the editor and change the reference to your attachment (filename.jpg to this-is-my-attachment.png). Make sure you include the exclamation at the beginning and the end

!filename.jpg|width=100%!

Works for me. Autoscaling and everything

Any way we can suggest to Jira to make this the default?

Like # people like this

Yes, please suggest to Jira to make this the default!

Doens't make sense, since we're loosing the old issue view the old texteditor will also slowly be phased out..

This is why we can't have nice things

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you