[Bug 160635] open or insert a TIFF image over 33,554,432 pixels fails in various ways ("Image Filter not found" in sd, Section dialog in sw, Push button in sc)

2024-06-12 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160635

Caolán McNamara  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|libreoffice-b...@lists.free |caolan.mcnamara@collabora.c
   |desktop.org |om

--- Comment #8 from Caolán McNamara  ---
well, we can try it again and see if anything arises.
https://gerrit.libreoffice.org/c/core/+/168747

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 160635] open or insert a TIFF image over 33,554,432 pixels fails in various ways ("Image Filter not found" in sd, Section dialog in sw, Push button in sc)

2024-06-11 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160635

--- Comment #7 from Fred  ---
(In reply to Stéphane Guillou (stragu) from comment #5)
...
> 
> Indeed, the patch defines:
> 
> nMaxPixelsAllowed = (256 * 1024 * 1024) / 4
> 
> ... which is later divided by 2, so a max of 33,554,432 pixels, which
> matches the 5793x5793 import failing.
> 
> So that was by design, but I guess we could fail more gracefully. What do
> you think, Caolán?

This limit has been lessened from previous release...
Version: 7.3.1.3
Build ID: 30(Build:3)
CPU threads: 4; OS: Linux 5.17; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Request that the previous upper limit be maintained so that existing previously
valid .odp files remain valid.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 160635] open or insert a TIFF image over 33,554,432 pixels fails in various ways ("Image Filter not found" in sd, Section dialog in sw, Push button in sc)

2024-06-11 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160635

Stéphane Guillou (stragu)  changed:

   What|Removed |Added

 CC||f...@damen.org

--- Comment #6 from Stéphane Guillou (stragu) 
 ---
*** Bug 161299 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 160635] open or insert a TIFF image over 33,554,432 pixels fails in various ways ("Image Filter not found" in sd, Section dialog in sw, Push button in sc)

2024-06-11 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=160635

Stéphane Guillou (stragu)  changed:

   What|Removed |Added

   Keywords||bibisected, bisected
 Status|NEEDINFO|NEW
Version|24.2.2.2 release|7.5.3.2 release
 CC||caolan.mcnamara@collabora.c
   ||om
 Blocks||47148, 126152
Summary|"Image Filter not found"|open or insert a TIFF image
   |error when trying to open a |over 33,554,432 pixels
   |multipage TIFF image|fails in various ways
   ||("Image Filter not found"
   ||in sd, Section dialog in
   ||sw, Push button in sc)

--- Comment #5 from Stéphane Guillou (stragu) 
 ---
Using ImageMagick, I can insert a 201.3 mb image created with:

convert -size 5792x5793 xc:pink pink.tif

But it fails with a 201.4 mb image created with:

convert -size 5793x5793 xc:pink pink.tif

So it looks like there's a number of pixels over which the filter fails.
No issue if image is e.g. a PNG of the same size.
Issue is not related to the size of the file, see bug 160635 in which it fails
for a 109 mb picture.

Funnily enough, if it fails to insert it into a Calc document, you end up with
a Push Button Form Control labelled with the path to the image, and in Writer,
with the section dialog.

Reproduced in recent own build:

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6f4adc1274cfac30b9097411bb193bd4386969f0
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

As well as LO 7.5.9, but not in 7.4.0.3.

Bibisected with linux-64-7.5 to first bad build
[1ae6bd31aa05c337c00ab8c83f7fdf35ed0c6fe4] which is
a5d5c29769d3c744d8a89052842f73dabd71f445, a cherrypick of:

commit  b05fb34d48da717447b9b86db9546df72b25e988
author  Caolán McNamara Sat Apr 01 22:04:32 2023 +0100
committer   Caolán McNamara Sun Apr 02 17:44:42 2023 +0200
use the same max size that libtiff defaults to for its own utilities
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149922

Indeed, the patch defines:

nMaxPixelsAllowed = (256 * 1024 * 1024) / 4

... which is later divided by 2, so a max of 33,554,432 pixels, which matches
the 5793x5793 import failing.

So that was by design, but I guess we could fail more gracefully. What do you
think, Caolán?


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=47148
[Bug 47148] [META] Image handling problems
https://bugs.documentfoundation.org/show_bug.cgi?id=126152
[Bug 126152] [META] TIFF image bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.