On Tue, Aug 20, 2013 at 10:32 AM, Paul Libbrecht <paul(a)hoplahup.net> wrote:
Le 20 août 2013 à 09:07, Marius Dumitru Florea a écrit :
>>
1) very wide images aren't resized to fit the width of the blog
>
> Couldn't you limit the size of the images either through wiki syntax (
> [[image:foo.png||width="200px"]] ) or through CSS ( max-width: 200px
> )?
>
The size should be adjusted automatically without
any funny CSS or width
configuration.
It is as simple as specifying the width when you insert an image in a
blog post using the WYSIWYG editor and you know that the image won't
fit the screen size. Each blog post is unique so the author must know
what images he's going to insert (unless you are generating the blog
posts automatically from some external source you don't control).
Plus, I doubt you have tons of images to insert (in that case I
recommend you to use the gallery macro). Moreover, the editor allows
you to create a link to view the original image, when the user clicks
on the resized image. So I don't see the problem here, sorry.
Maybe Crocket's satisfaction would be reached if
the (configurable?) default would be width 100%?
I doubt it because then small images will be resized and they will
look bad. Technically the solution is to use max-width:100% in the
skin (or the blog post sheet) so that images are resized only if they
exceed the width of their container. The problem is that with this
change the width specified in the Insert Image dialog of the WYSIWYG
editor will be ignored if it exceeds the width of the page and it some
cases you might want to display the full image even if you get scroll
bars (so you need to be able to overwrite max-width:100% from the
WYSIWYG editor).
Thanks,
Marius
paul
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users