MozillaZine

Real-Time Mouse Resizing of Images and Tables in Composer

Wednesday March 26th, 2003

Daniel Glazman writes: "Thanks to the fix for bug 47066, recent Mozilla nightly builds now allow resizing of images and tables with the mouse in Composer and HTML mail composition. All embeddors of the HTML editor can also enable or disable this feature. If an image is selected or if the caret is placed inside a table, eight resizing handles appear and allow to resize the image/table with a simple click/drag/release. In the case of an image, the resizing is done real-time and a semi-opaque shadow of the image at its target size is shown during resizing. A tooltip shows in real-time the target size in pixels, and the relative change in pixels too."

Even if you never use Composer or HTML mail composition, you'll want to try this out at least once because it looks really cool.


#1 Wow!

by djst

Wednesday March 26th, 2003 11:37 AM

Reply to this message

Very intuitive!

#2 Killer app

by Kovu <Kovu401@netscape.net>

Wednesday March 26th, 2003 11:47 AM

Reply to this message

More and more features from non-browser apps such as photo editing tools are appearing in Mozilla; this really proves that Mozilla is a really righteous Web platform that can literally do nearly anything we want it to.

#8 Re: Killer app

by superyooser

Wednesday March 26th, 2003 7:48 PM

Reply to this message

Photo editing? Does this feature actually resize the image file or just change the HTML img height and width attributes?

#9 Re: Re: Killer app

by AlexBishop <alex@mozillazine.org>

Wednesday March 26th, 2003 8:22 PM

Reply to this message

"Does this feature actually resize the image file or just change the HTML img height and width attributes?"

The latter (though it alters the width and height properties in the style attribute if you've got Composer set up to use CSS).

Alex

#12 pity

by wvw

Thursday March 27th, 2003 4:23 AM

Reply to this message

That's a pity. It would be really great if the real image (or a backup) would be resized automatically. A normal user doesn't have to even know the difference between real resize and html/css-resize imho.

#3 glad that composer is still being worked on

by buckminster

Wednesday March 26th, 2003 12:48 PM

Reply to this message

Except for maybe some bug fixes (I don't monitor all of these), it doesn't seem that much work is done on Composer. I'm glad it's not going completely on the wayside

#4 Maintain Aspect Ratio

by GAThrawn

Wednesday March 26th, 2003 1:08 PM

Reply to this message

Is there a setting to maintain aspect ratio whilst dragging (or is this enabled by default), as some of us have difficulty judging this sort of thing by eye whilst dragging. It'll also help out people using laptop trackpads and with limited motor control.

#5 Re: Maintain Aspect Ratio

by AlexBishop <alex@mozillazine.org>

Wednesday March 26th, 2003 1:12 PM

Reply to this message

"Is there a setting to maintain aspect ratio whilst dragging (or is this enabled by default), as some of us have difficulty judging this sort of thing by eye whilst dragging."

The four corner handles maintain the aspect ratio. Personally, I'd like to be able to over-ride this (perhaps by pressing shift?) as it can be nice to do freehand resizing with just one handle.

Alex

#6 Re: Re: Maintain Aspect Ratio

by GAThrawn

Wednesday March 26th, 2003 1:32 PM

Reply to this message

Yup just read the bug (doh, should have done that before asking) and I saw that the original XBL version did keep aspect ratio using the corners, so guessing that the C rewrite would have had that too.

Personally I think the keep aspect ratio with corners/stretch on sides actually sounds fairly intuitive, although it might be nice to be able to change this on an image-by-image basis, I believe many (paper) publishing tools allow you to do this.

#7 Re: Argh...2

by roc <roc+moz@cs.cmu.edu>

Wednesday March 26th, 2003 3:49 PM

Reply to this message

It would be supercool if this worked in the browser too.

#10 Editor embedding

by biswapesh

Thursday March 27th, 2003 12:45 AM

Reply to this message

Are there any docs on how to embed theeditable HTML widget in a native app ? A really nice thing would be a widget like GtkEmbedMoz (say, GtkEmbedMozEditable) so that we can use the editable HTML widget in mailers and WYSWYG native HTML composer applications.

#11 wow

by wvw

Thursday March 27th, 2003 4:20 AM

Reply to this message

Cool! Go for the kill!

#13 i love it!

by sime

Thursday March 27th, 2003 5:27 AM

Reply to this message

Composer development! go Go GO!! :)

#14 Installing

by sime

Thursday March 27th, 2003 6:49 PM

Reply to this message

Can I install an xpi instead of an nightly, if so which one? On some of my machines I dont install other than the 1.x's. But everyone has an sandbox :)