Ticket #876 (closed Defect: fixed)
Adjust image display size to frame in detail panel
Reported by: | JuergeN | Owned by: | jri |
---|---|---|---|
Priority: | Major | Milestone: | Release 4.8 |
Component: | DeepaMehta Standard Distribution | Version: | 4.7 |
Keywords: | Cc: | ||
Complexity: | 3 | Area: | GUI / Usability |
Module: |
Description
As a user I want to see a picture (image) in the detail panel. The image display size sould be adjusted automaticly to the frame in the detail panel.
Change History
comment:2 Changed 9 years ago by jri
Thank you, JuergeN and Malte, for valuable input!
In DM 4.8 the image size problem will be solved.
(The CROWD people have the same need.)
comment:4 Changed 9 years ago by jri
The same type of auto-scaling should be applied to videos (embedded via CKEditor) as well.
Note: See
TracTickets for help on using
tickets.
I accidentally stumped upon this and thought of a solution. So, let us keep in mind that the rendering of images (and thus this issue) currently happens in two cases:
I think we should solve this issue through providing a new standard CSS rule.
The case would be IF an image exceeds the current width of the Detail Panel, its widths-size is adjusted. The desired behaviour would be, images get just down-scaled (never up-scaled) when they appear in the so called "Page Panel".
Question to the dm4-webclient developer:
Would the following selector and definition cover both cases?
If so, do we want to introduce this rule just for the dm4-files page renderer? or also for the dm4-images plugin. What do you think?
I think to not truncate images in the dm4-webclient page display makes sense in both cases.
I just introduced this rule into the upcoming dm47-deepamehta-images plugin and it seems to work as expected.