Bug 107261 - UNO command to apply image colorization options
Summary: UNO command to apply image colorization options
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
5.4.0.0.alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: UNO-Command-New Notebookbar-ContextualGroups Image-Colorize
  Show dependency treegraph
 
Reported: 2017-04-19 09:03 UTC by Heiko Tietze
Modified: 2023-07-01 09:48 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Tietze 2017-04-19 09:03:15 UTC
The contextual sections variant of the notebookbar deals a lot with styles. Among others the image style is such a basic function made salient by a big button. However, the actual image "styles" in this menu are only dummies. 

So what we need are functions for setting an image to default/greyscale/black|white/watermark (ideally per radiobuttons) ("colormode" in sidebar), functions to increase/decrease brightness/contrast, and finally to colorize. 

Even better would be to have the various Filter there (Invert, Smooth, Sharpen...).
Comment 1 Yousuf Philips (jay) (retired) 2017-04-19 18:28:05 UTC
So we need an UNO command that can accept query information for all image adjustment options, so its easy to create custom presets without having to create individual UNO commands for each of them. It would look something like this.

.uno:ColorizeImage?Mode=Grayscale&Brightness=10&Contrast=-10&Red=10&Green=20&Blue=30&Gama=0.25&Transparency=50

All query fields for visible in the Image content panel of the Properties sidebar deck.

(In reply to Heiko Tietze from comment #0)
> Even better would be to have the various Filter there (Invert, Smooth,
> Sharpen...).

There are UNO commands already for these filters, but they are destructive by nature, so it wouldnt be useful to have. (bug 87396).
Comment 2 Justin L 2023-06-29 11:43:43 UTC
This bug report appears to be obsolete.
1.) There is no "big style button"
2.) At least some of the items (like brightness, filter) widgets exist
Comment 3 Heiko Tietze 2023-07-01 09:48:17 UTC
The concept is explained in https://wiki.documentfoundation.org/Design/Guidelines/ToolBar and more verbosely in https://design.blog.documentfoundation.org/2016/12/21/evolving-past-the-restrictions-of-toolbars/. The Notebookbar variant is supposed to allow users to spot most relevant functions (which are mostly styles) in a glimpse by using large buttons.

I'm okay if we decide to not realize this NB. Although it would be a pity to just follow what others do.