Wiki image width control

Added by Michael Aye over 9 years ago

The width control for images, advertised on the Wiki formatting page:

!{width:300px}image_url! sets the width of the image

does not seem to work for me (running 1.0.4 here)

Could someone try it out and confirm?

Best regards,
Michael

Replies (6)

RE: Wiki image width control - Added by Michael Aye over 9 years ago

So nobody uses the width keyword??

RE: Wiki image width control - Added by Felix Schäfer over 9 years ago

What wiki formatting page are you referring to, couldn't find it through the direct help (top right of wiki text fields)?

Anyway, I'd be surprised if it worked as CSS styles for textile have been deactivated in 0.7 (or around there) because it's a security risk.

RE: Wiki image width control - Added by Michael Aye over 9 years ago

I meant this:
http://www.redmine.org/projects/redmine/wiki/RedmineTextFormatting#Inline-images

But then we should take it out of the Redmine guide, no?

RE: Wiki image width control - Added by Michael Aye over 9 years ago

So, putting this

#content .wiki img {
   max-width: 98%;
}

in application.css will also not work? (I can't test it, have to ask the admin to put it)

RE: Wiki image width control - Added by Felix Schäfer over 9 years ago

Michael Aye wrote:

So, putting this

[...]

in application.css will also not work? (I can't test it, have to ask the admin to put it)

That would work as it's part of the css, putting custom styles in the wiki markup are ignored.

I think there was a plugin somewhere either reverting that behavior, or even making it optionally available for certain roles, I don't have it at hand though, so I'll let you search for it.

RE: Wiki image width control - Added by Olivier Houdas 7 months ago

For those finding this post in Google when trying to resize an image in Redmine,

!{width:25%}image_url!

does work on Redmine 3.x (tried on 3.4.6)

(1-6/6)