On Thu, Dec 4, 2008 at 4:38 PM, Vincent Massol <vincent(a)massol.net> wrote:
a) Allow to edit only the image width (guarantee that the image
width/height ratio won't be affected by the resize).
b) Allow to edit both image width and height.
+1 for b) as it's done in the mockup (except that I don't understand
why there's only one width box and no height when "custom" is chosen
in the combo).
This is supposed to be explained by the sentence between the select
and the input.
4) Preview
--------------
I've put an image preview in the mockup, we've multiple choices:
a) Drop it since it makes the dialog heavy.
a) Keep it stupid simple, the image is represented by a placeholder
and the 6 possible states are "prerecorded" (could be images).
d) Make it an advanced preview, the image is the selected image, the
preview takes the size of the image into account (by calculating what
the selected size would look like compared to the page content in a
predefined resolution, like 1024x768).
Why not have a preview button and this opens a new window with the doc
as it'll look like?
I'm generally in favor of d) if possible (I think 4) should not be in
a first version if too complex).
I agree that 4) d) could be developed after a first version if too complex.
What I don't understand is whether you plan to
show the whole doc in
the same dialog box preview viewport. This is why I was suggesting to
open a new window to render a temporary document instead.
The idea here is not to take the content from the document, just to
offer a quick preview of the image in the text flow.
With fake content like : ____ _______ _______________ ___ ____.
With a 1024x768 resolution the content part of our pages is something
like 800px wide. With a 400px wide preview container we could render
the image with the selected size / 2. No matter the user resolution
we'd display the preview with a refined version of this rule.
See a HTML mockup of this at :
http://www.jean-vincent.org/xwiki/bin/view/Main/Preview?xpage=plain
I'm -1 to open a preview in a new window, the idea of the preview in
the mockup was to have a _quick_ idea of the result, if the user wants
to see the result he just has to insert it.
JV.