Closed Bug 228085 Opened 22 years ago Closed 19 years ago

Enable prettier image scaling and resizing for stand-alone images either

Categories

(Core :: Layout: Images, Video, and HTML Frames, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 98971

People

(Reporter: netdragon, Assigned: jdunn)

Details

Broken off of bug 98971 -- this bug is to enable pretty image scaling and make it only happen for stand-alone images. We don't want it happening for web pages because it'll slow-down rendering for those pages that abuse scaling. Perhaps some-day we could provide a mozilla-specific CSS property until there are some page zoom and image scaling quality CSS properties (if ever), but for now, we probably only want to enable it for stand-alone. nsImageDocument would be where we'd somehow enable it. Perhaps we will need a moz-scaling-quality CSS property (default is bilinear) or something. What do you think? http://lxr.mozilla.org/seamonkey/source/content/html/document/src/nsImageDocument.cpp
*** This bug has been marked as a duplicate of 98971 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Why was this bug marked as a duplicate? This is a different issue since it deals with stand-alone images, not the back-end aspects for different forms of scaling. Bug 98971 is a bit too bloated and shouldn't deal with every issue that involves image scaling.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
The mozilla-specific CSS property -moz-scaling-quality would be handle also for people who want to do something like implement a standalone mozilla-based image viewer similiar to "Mozilla Picture and Fax Viewer". Hixie: Would this be a good idea or not?
Status: REOPENED → ASSIGNED
QA Contact: jdunn
I don't understand why this isn't a duplicate. Our scaling code should be good quality and fast and not use much memory and should work for all the scaling in the app.
Is that reasonable that we can use the same kind of top-quality scaling for all images? The tests run in bug 98971 seems to point to we might want to provide different kinds of scaling in different cases because there are some times where bicubic scaling would be too slow. I think a hidden CSS property would be useful for that. Its why I asked you, though, and I trust your judgement on this sort of thing.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago19 years ago
No longer depends on: 98971
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.