Bug 151812 - Smooth Image Filter not working as expected
Summary: Smooth Image Filter not working as expected
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.4.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-29 09:47 UTC by PeeWee
Modified: 2022-10-30 11:26 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
File with noisy image (17.96 KB, application/vnd.oasis.opendocument.graphics)
2022-10-29 23:16 UTC, Regina Henschel
Details
original and smoothed image (571.28 KB, application/vnd.oasis.opendocument.graphics)
2022-10-29 23:20 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PeeWee 2022-10-29 09:47:43 UTC
Description:
The Smooth image filter has no effect when applied to an image. Also, setting the value of the Smooth Radius parameter has no effect.

Steps to Reproduce:
1. Select an image that has been inserted into a drawing.
2. Open the Image Filter toolbar and select the Smooth filter to open the Smooth dialog.
3. Increase the value of the Smooth radius parameter. The preview window in the Smooth dialog shows the effect of the Smooth filter.
4. Click OK on the dialog to close and apply the filter effect to the image.
5. No image filter effect on the selected image.

Actual Results:
The effect of the Smooth image filter is displayed in the Smooth dialog. No effect is shown on the image in the drawing.

Expected Results:
The effect of the Smooth image filter should be displayed on the image in the drawing after clicking OK to close the Smooth dialog.


Reproducible: Always


User Profile Reset: No

Additional Info:
The effect of the Smooth image filter should have been displayed on the image in the drawing.
Comment 1 Regina Henschel 2022-10-29 23:16:40 UTC
Created attachment 183335 [details]
File with noisy image

I cannot confirm it. The filter works for me in Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 17dfc9a9da009cc23d2222e3fb4e2cef9c97d581
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL threaded

Does your image have any noise? Does the selected radius fits to the DPI of the image? If the image is large you need to wait a little bit until the calculations are done.

Apply the filter with a radius of 4 to the image in the attachment to see an effect.
Comment 2 Regina Henschel 2022-10-29 23:20:11 UTC
Created attachment 183336 [details]
original and smoothed image

And here an example with original image and with smooth with radius 50 applied image.
Comment 3 PeeWee 2022-10-30 08:50:23 UTC
After a bit of testing with some of my photos, I have found out that file size is the problem with using the Smooth filter.

I cropped one of my photos (JPEG format) from 1.6MB down to 13kb and applied the smooth filter with a radius of 4. The effect was applied almost immediately.

Original file size the Smooth filter had no effect, even waiting for 15 minutes to see if the Smooth filter would work.

A note will be added to Chapter 6 in the Draw user guide about file size.
Comment 4 Regina Henschel 2022-10-30 11:26:58 UTC
The size itself is not a problem. You will get a spinner while LO is calculating.

Example: If your picture is 3264pixel wide and you show it on 30cm wide screen, then a radius of 2 is about 0,018cm. You will not notice a change in 100% zoom. You will see the change, when you use a 1000% zoom for example which lets you see single pixels.

The Smooth filter is seldom used to generate a large blur effect, but it is used to reduce single pixel errors and to introduce a subtle soft focus effect.

I set to "WORKSFORME". You can reopen the bug report in case you do not agree.