Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v20]

2024-11-13 Thread Michael Strauß
On Wed, 13 Nov 2024 22:38:27 GMT, Andy Goryachev wrote: > too late to the party, but > > ``` > Description ResourceTypePathLocation > The method load(int, double, double, boolean, boolean, float, float) of type > GIFImageLoader2 should be tagged with @Override since it actuall

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v20]

2024-11-13 Thread Andy Goryachev
On Wed, 13 Nov 2024 18:33:27 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) S

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v20]

2024-11-13 Thread Andy Goryachev
On Wed, 13 Nov 2024 18:33:27 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) S

Integrated: 8306707: Support pluggable image loading via javax.imageio

2024-11-13 Thread Michael Strauß
s how the feature can > be used to load SVG images in a JavaFX application: > https://github.com/mstr2/jfx-imageio-sample This pull request has now been integrated. Changeset: 72af9e23 Author:Michael Strauß URL: https://git.openjdk.org/jfx/commit/72af9e2366727a83ca1eace73e1c337cc4

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v20]

2024-11-13 Thread John Hendrikx
On Wed, 13 Nov 2024 18:33:27 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) S

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v20]

2024-11-13 Thread Kevin Rushforth
On Wed, 13 Nov 2024 18:33:27 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) S

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v19]

2024-11-13 Thread Michael Strauß
On Wed, 13 Nov 2024 12:15:20 GMT, John Hendrikx wrote: >> Michael Strauß has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 33 commits: >> >> - Merge branch 'master' into feature/ximageloader >> - move automatically added imports >

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v20]

2024-11-13 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v19]

2024-11-13 Thread Jayathirth D V
On Sat, 9 Nov 2024 07:43:43 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) SV

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v19]

2024-11-13 Thread Kevin Rushforth
On Sat, 9 Nov 2024 07:43:43 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) SV

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v11]

2024-11-13 Thread Kevin Rushforth
On Wed, 13 Nov 2024 06:17:18 GMT, Michael Strauß wrote: >>> 2. This patch causes a failure in one of our closed white-box tests, >>> which depends on internal API that has changed. It will be easy for us to >>> fix it, but it will mean that down the road, when this is ready to go in, >>> w

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v19]

2024-11-13 Thread John Hendrikx
On Sat, 9 Nov 2024 07:43:43 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) SV

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v11]

2024-11-13 Thread Michael Strauß
On Wed, 13 Nov 2024 04:38:51 GMT, Jayathirth D V wrote: >> I'm just starting to look at this. The tests I ran look good so far, with >> two things to note: >> >> 1. If `XImageLoaderFactory` fails to load, it with throw an `Error` that >> terminates the app. I left a comment and suggestion inli

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v11]

2024-11-12 Thread Jayathirth D V
On Fri, 1 Nov 2024 16:59:50 GMT, Kevin Rushforth wrote: > 2. This patch causes a failure in one of our closed white-box tests, > which depends on internal API that has changed. It will be easy for us to fix > it, but it will mean that down the road, when this is ready to go in, we will > n

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v19]

2024-11-09 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v18]

2024-11-08 Thread Michael Strauß
On Fri, 8 Nov 2024 18:44:22 GMT, Kevin Rushforth wrote: >> Michael Strauß has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - move automatically added imports >> - rename test...javax -> test...java2d > > modules/javafx.graphics/src/main/

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v18]

2024-11-08 Thread Kevin Rushforth
On Thu, 7 Nov 2024 19:04:07 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) SV

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v18]

2024-11-07 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v17]

2024-11-06 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v15]

2024-11-06 Thread Michael Strauß
On Wed, 6 Nov 2024 21:26:30 GMT, Kevin Rushforth wrote: >> I'm not so sure about this, since there's already "iio" in in the name. > > How about one of the following as an alternative? > > * com.sun.javafx.iio.java2d > * com.sun.javafx.iio.j2d > * com.sun.javafx.iio.desktop > > That's roughly i

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v16]

2024-11-06 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v15]

2024-11-06 Thread Kevin Rushforth
On Wed, 6 Nov 2024 18:46:38 GMT, Michael Strauß wrote: >> modules/javafx.graphics/src/test/addExports line 22: >> >>> 20: --add-exports javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED >>> 21: --add-exports javafx.graphics/com.sun.javafx.iio.png=ALL-UNNAMED >>> 22: --add-exports javafx.graphics/co

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v15]

2024-11-06 Thread Jayathirth D V
On Sat, 2 Nov 2024 05:02:20 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) SV

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v15]

2024-11-06 Thread Michael Strauß
On Wed, 6 Nov 2024 10:32:52 GMT, Jayathirth D V wrote: >> Michael Strauß has updated the pull request incrementally with one >> additional commit since the last revision: >> >> revert doc change > > modules/javafx.graphics/src/test/addExports line 22: > >> 20: --add-exports javafx.graphics/c

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v15]

2024-11-01 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v14]

2024-11-01 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v9]

2024-11-01 Thread Michael Strauß
On Fri, 1 Nov 2024 17:03:16 GMT, Kevin Rushforth wrote: >> `ImageTools.computeDimensions()` will not allow the dimensions to be less >> than 0. > > An integer overflow doesn't necessarily cause the result to be negative. I > echo Jay's comment, and suggest an explicit check. I note that the cod

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v13]

2024-11-01 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v12]

2024-11-01 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v9]

2024-11-01 Thread Kevin Rushforth
On Wed, 30 Oct 2024 18:32:55 GMT, Michael Strauß wrote: >> modules/javafx.graphics/src/main/java/com/sun/javafx/iio/bmp/BMPImageLoaderFactory.java >> line 496: >> >>> 494: >>> 495: int[] outWH = ImageTools.computeDimensions( >>> 496: bih.biWidth, hght, (int)(w * imagePixelS

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v11]

2024-11-01 Thread Kevin Rushforth
On Thu, 31 Oct 2024 15:42:56 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) S

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v11]

2024-10-31 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v9]

2024-10-30 Thread Michael Strauß
On Wed, 30 Oct 2024 18:35:26 GMT, Andy Goryachev wrote: >> modules/javafx.graphics/src/main/java/com/sun/javafx/iio/javax/XImageLoader.java >> line 126: >> >>> 124: int imageHeight = reader.getHeight(imageIndex); >>> 125: int[] widthHeight = ImageTools.computeDimensions(

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v9]

2024-10-30 Thread Michael Strauß
On Tue, 29 Oct 2024 10:26:26 GMT, Jayathirth D V wrote: >> Michael Strauß has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 21 additional >> commi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v9]

2024-10-30 Thread Andy Goryachev
On Wed, 30 Oct 2024 08:02:19 GMT, Jayathirth D V wrote: >> Michael Strauß has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 21 additional >> commi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v10]

2024-10-30 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v9]

2024-10-30 Thread Jayathirth D V
On Mon, 28 Oct 2024 17:36:56 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) S

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v9]

2024-10-28 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v8]

2024-10-23 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v6]

2024-10-22 Thread Michael Strauß
On Tue, 22 Oct 2024 15:13:05 GMT, Andy Goryachev wrote: >> `scanlineStride` is useful for all the `ImageFrame` constructors, or do you >> think recomputing it (with the risk of it being different) is still the best >> course of action given that AWT supplies it and might be using some other >>

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v6]

2024-10-22 Thread Michael Strauß
On Tue, 22 Oct 2024 15:55:20 GMT, Michael Strauß wrote: >>> `var` helps the writer of the code, but almost never helps the reader of >>> the code >> >> I fully agree with John on this. > >> `scanlineStride` is useful for all the `ImageFrame` constructors, or do you >> think recomputing it (wit

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v7]

2024-10-22 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v6]

2024-10-22 Thread Andy Goryachev
On Tue, 22 Oct 2024 05:54:28 GMT, John Hendrikx wrote: >> modules/javafx.graphics/src/main/java/com/sun/javafx/iio/javax/XImageLoader.java >> line 209: >> >>> 207: : ImageStorage.ImageType.PALETTE; >>> 208: >>> 209: var scanlineStride = switch(image.getSampl

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v6]

2024-10-21 Thread John Hendrikx
On Tue, 22 Oct 2024 05:51:04 GMT, John Hendrikx wrote: >> Michael Strauß has updated the pull request incrementally with one >> additional commit since the last revision: >> >> scanline stride always measured in bytes > > modules/javafx.graphics/src/main/java/com/sun/javafx/iio/javax/XImageLo

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v6]

2024-10-21 Thread John Hendrikx
On Mon, 21 Oct 2024 13:27:08 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) S

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v6]

2024-10-21 Thread John Hendrikx
On Mon, 21 Oct 2024 13:27:08 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) S

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v5]

2024-10-21 Thread Michael Strauß
On Sat, 19 Oct 2024 16:24:42 GMT, John Hendrikx wrote: >> Michael Strauß has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - remove unused code >> - fix line endings > > modules/javafx.graphics/src/main/java/com/sun/javafx/iio/javax/XImag

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v6]

2024-10-21 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v5]

2024-10-19 Thread John Hendrikx
On Thu, 17 Oct 2024 19:25:30 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) S

Re: RFR: 8306707: Support pluggable image loading via javax.imageio

2024-10-18 Thread Johan Vos
On Thu, Oct 17, 2024 at 9:49 PM Phil Race wrote: > > In general dependencies on the the desktop module are an obstacle to > making FX > an independent toolkit. We already have that situation of course, but > making it > more common is the wrong direction, unless you think it an unrealistic goal >

Re: RFR: 8306707: Support pluggable image loading via javax.imageio

2024-10-17 Thread Phil Race
On Tue, 15 Oct 2024 17:29:30 GMT, Nir Lisker wrote: > It is at all possible to split the image loaders from the desktop module into > its own? I would think it will be useful for more than just JavaFX. That would still be dependent on the desktop module, so I don't see how that would help any

Re: RFR: 8306707: Support pluggable image loading via javax.imageio

2024-10-17 Thread Phil Race
On Tue, 15 Oct 2024 20:08:31 GMT, John Hendrikx wrote: > Any idea why FX has custom image loaders at all, and doesn't simply always > delegate to `ImageIO` for this? If the dependency burden is high, it could be > further reduced by removing built-in decoders? In other words, what's the > adva

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v5]

2024-10-17 Thread Michael Strauß
On Thu, 17 Oct 2024 19:19:02 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) S

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v5]

2024-10-17 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v4]

2024-10-17 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v3]

2024-10-16 Thread Oliver Schmidtmer
On Wed, 16 Oct 2024 14:30:12 GMT, Michael Strauß wrote: >> modules/javafx.graphics/src/main/java/com/sun/javafx/iio/javax/XImageLoader.java >> line 203: >> >>> 201: case TYPE_BYTE_INDEXED -> "TYPE_BYTE_INDEXED"; >>> 202: default -> Integer.toString(image.

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v3]

2024-10-16 Thread Michael Strauß
On Tue, 15 Oct 2024 22:04:42 GMT, John Hendrikx wrote: >> Michael Strauß has updated the pull request incrementally with one >> additional commit since the last revision: >> >> review changes > > modules/javafx.graphics/src/main/java/com/sun/javafx/iio/javax/XImageLoader.java > line 203: >

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v3]

2024-10-16 Thread Michael Strauß
On Wed, 16 Oct 2024 14:15:42 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) S

Re: RFR: 8306707: Support pluggable image loading via javax.imageio

2024-10-16 Thread Michael Strauß
On Tue, 15 Oct 2024 20:26:29 GMT, John Hendrikx wrote: > With the restructuring to make the dependency optional at runtime, this seems > like a reasonable approach to consider. I also want to make sure that we > don't initialize the AWT toolkit unless an application tries to load an image > fi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v3]

2024-10-16 Thread Michael Strauß
On Tue, 15 Oct 2024 22:47:38 GMT, John Hendrikx wrote: >> Michael Strauß has updated the pull request incrementally with one >> additional commit since the last revision: >> >> review changes > > modules/javafx.graphics/src/main/java/com/sun/javafx/image/impl/IntBgr.java > line 68: > >> 66:

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v3]

2024-10-16 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v3]

2024-10-16 Thread Michael Strauß
On Tue, 15 Oct 2024 22:55:45 GMT, John Hendrikx wrote: >> modules/javafx.graphics/src/main/java/com/sun/javafx/image/impl/BaseByteToByteConverter.java >> line 296: >> >>> 294: { >>> 295: srcscanbytes -= w * 3; >>> 296: srcscanbytes -= w * 4; >> >> This really do

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v2]

2024-10-16 Thread Michael Strauß
On Tue, 15 Oct 2024 21:35:14 GMT, John Hendrikx wrote: >> Michael Strauß has updated the pull request incrementally with one >> additional commit since the last revision: >> >> review changes > > modules/javafx.graphics/src/main/java/com/sun/javafx/iio/ImageStorage.java > line 201: > >> 199

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v2]

2024-10-16 Thread Michael Strauß
> This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. However, adding more built-in image > loaders is a signifi

Re: RFR: 8306707: Support pluggable image loading via javax.imageio

2024-10-15 Thread John Hendrikx
On Tue, 15 Oct 2024 22:29:52 GMT, John Hendrikx wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) SV

Re: RFR: 8306707: Support pluggable image loading via javax.imageio

2024-10-15 Thread John Hendrikx
On Mon, 7 Oct 2024 15:13:17 GMT, Michael Strauß wrote: > This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. Ho

Re: RFR: 8306707: Support pluggable image loading via javax.imageio

2024-10-15 Thread John Hendrikx
On Mon, 7 Oct 2024 15:13:17 GMT, Michael Strauß wrote: > This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. Ho

Re: RFR: 8306707: Support pluggable image loading via javax.imageio

2024-10-15 Thread John Hendrikx
On Tue, 15 Oct 2024 17:23:11 GMT, Kevin Rushforth wrote: > With the restructuring to make the dependency optional at runtime, this seems > like a reasonable approach to consider. I also want to make sure that we > don't initialize the AWT toolkit unless an application tries to load an image >

Re: RFR: 8306707: Support pluggable image loading via javax.imageio

2024-10-15 Thread John Hendrikx
On Mon, 7 Oct 2024 15:13:17 GMT, Michael Strauß wrote: > This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. Ho

Re: RFR: 8306707: Support pluggable image loading via javax.imageio

2024-10-15 Thread Nir Lisker
On Mon, 7 Oct 2024 15:13:17 GMT, Michael Strauß wrote: > This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. Ho

Re: RFR: 8306707: Support pluggable image loading via javax.imageio

2024-10-15 Thread Kevin Rushforth
On Mon, 7 Oct 2024 15:13:17 GMT, Michael Strauß wrote: > This PR is an improved version of #1093. > > JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image > loaders. It has been a long-standing request to support more image formats, > most notably (but not limited to) SVG. Ho

RFR: 8306707: Support pluggable image loading via javax.imageio

2024-10-07 Thread Michael Strauß
This PR is an improved version of #1093. JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image loaders. It has been a long-standing request to support more image formats, most notably (but not limited to) SVG. However, adding more built-in image loaders is a significant effort

Re: Support pluggable image loading via javax.imageio

2023-04-18 Thread clemens.lantha...@itarchitects.at
Hi Michael, yes you are right. It could live in parallel. > On 18. Apr 2023, at 20:23, Michael Strauß wrote: > > Hi Clemens, > > when you talk about doing it faster, are you concerned about performance? > > Creating an API for the JavaFX image loaders is also a possibility, > but that's muc

Re: Support pluggable image loading via javax.imageio

2023-04-18 Thread Michael Strauß
Hi Clemens, when you talk about doing it faster, are you concerned about performance? Creating an API for the JavaFX image loaders is also a possibility, but that's much more difficult to get done. We can always do that in the future though, the proposed support for Java Image I/O doesn't close a

Re: Support pluggable image loading via javax.imageio

2023-04-18 Thread clemens.lantha...@itarchitects.at
You can do it via non public API much faster. You can have a look into LibrawFX or LibHeifFX. What would help is to make the existing API public. Clemens > On 18. Apr 2023, at 17:51, John Neffenger wrote: > > On 4/17/23 2:10 PM, Michael Strauß wrote: >> I've been working on a proposal that

Re: Support pluggable image loading via javax.imageio

2023-04-18 Thread John Neffenger
On 4/17/23 2:10 PM, Michael Strauß wrote: I've been working on a proposal that doesn't add any new API to JavaFX, but instead plugs into the existing `javax.imageio` API, allowing applications to use third-party libraries like TwelveMonkeys [0] to load a wide variety of image formats. Looks int

Support pluggable image loading via javax.imageio

2023-04-17 Thread Michael Strauß
Extending the image loading capabilities of JavaFX to support additional image formats is a recurring question that still has no good answer. I've been working on a proposal that doesn't add any new API to JavaFX, but instead plugs into the existing `javax.imageio` API, allowing applications to us