Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. How can I add an SVG image to the Wiki without using 100% width

How can I add an SVG image to the Wiki without using 100% width

Added by ravenous bugblatterbeast about 4 years ago

Hi,

everytime I add an SVG image to the Wiki it uses 100% width and does not work along with the index macro. Is there a way to change the display style of an SVG image?

test.svg

Even though the image does not use the full width, the yellow frame (visible in edit mode) takes the full width of the content. I do not need to have text floating around the image, but it would be nice if I could have an image next to the page index. Additionally I have some svgs that I would like to scale down when I display them in the wiki.

Thanks and kind regards


Replies (6)

RE: How can I add an SVG image to the Wiki without using 100% width - Added by ravenous bugblatterbeast about 4 years ago

Hi,

somehow I never got to see the additional image menu until now. In my workflow it just didn't show up. Possibly because I inserted the images by editing markdown (I don't know how to insert SVGs any other way). Now that I've stumbled on it by mere accident I see that I can scale down images to 50% or 75%.

Issue is resolved.

RE: How can I add an SVG image to the Wiki without using 100% width - Added by Jan H over 3 years ago

Hi,

I am currently looking for a way to embed SVGs in my wiki, but somehow, it does not seem to work for me. I you dont't mind, could you tell me, how exactly you embedded the SVG as you did in this post?

I assume you did the following:

  1. upload the SVG to the attachment
  2. embed via markdown: ![this is the alt text](test.svg)
  3. success?

RE: How can I add an SVG image to the Wiki without using 100% width - Added by ravenous bugblatterbeast over 3 years ago

Hi Jan,

yes, that's exactly how it works. However, you have to tell OpenProject that .svg is an accepted image extension before you're able to do it. You can't do it in the administration panel. I had to add the extension to a configuration file.

Right now, I can't remember which file it was. Let me look into it.

RE: How can I add an SVG image to the Wiki without using 100% width - Added by ravenous bugblatterbeast over 3 years ago

I can't find the configuration file. Maybe I'm remembering it wrong and it was an update... I am absolutely sure though, that it didn't work right away.

EDIT:
it was an update!
https://community.openproject.org/projects/openproject/work_packages/26868/activity
it should work from version 7.4.0

RE: How can I add an SVG image to the Wiki without using 100% width - Added by Jan H over 3 years ago

Thank for the quick reply. Guess I'll open a ticket or post this in the forum, since I find it rather useful to work with SVGs instead of pngs oder jpgs.

RE: How can I add an SVG image to the Wiki without using 100% width - Added by James Elliott over 3 years ago

ravenous bugblatterbeast wrote:

I can't find the configuration file. Maybe I'm remembering it wrong and it was an update... I am absolutely sure though, that it didn't work right away.

EDIT:
it was an update!
https://community.openproject.org/projects/openproject/work_packages/26868/activity/tellthebell
it should work from version 7.4.0

Thanks for the information, I will try to figure it out for more. Keep sharing such informative post.

  • (1 - 6/6)
Loading...