Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You must add `--enable-native-access=ALL-UNNAMED` to your JVM runtime arguments.
about "Restricted methods". In the future, the JVM will throw an error if you don't explicitly include this flag.

As the project uses the Java FFM API, and Markdown comments, your target must also be JDK 23+. Bindings are currently
generated from libvips `8.18.0` (but should be safe to use with different minor or patch versions).
generated from libvips `8.18.2` (but should be safe to use with different minor or patch versions).

> [!NOTE]
> This library **does not** include `libvips` in the download, you must add it to the system/container you're building
Expand Down
6 changes: 5 additions & 1 deletion core/src/main/java/app/photofox/vipsffm/VImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -9586,13 +9586,15 @@ public static VImage uhdrloadSource(Arena arena, VSource source, VipsOption... a
/// If the image is scRGB and has a gainmap, a base image will be computed
/// and it will be saved as UltraHDR.
///
/// If the image is scRGB and has no gainmap, one will be computed.
/// If the image is scRGB and has no gainmap, one will be computed at a
/// `gainmap_scale_factor` of the base image.
/// This is slow and takes a lot of memory.
///
/// See also: `Image.write_to_file`, [VImage#uhdrload]
/// @param filename Filename to save to
/// @param args Array of VipsOption to apply to this operation
/// @optionalArg Q [VipsOption.Int] Q factor
/// @optionalArg gainmap-scale-factor [VipsOption.Int] The scale factor of base image to gainmap image
/// @optionalArg keep [VipsOption.Int] Which metadata to retain
/// @optionalArg background [VipsOption.ArrayDouble] Background value
/// @optionalArg page-height [VipsOption.Int] Set page height for multipage save
Expand All @@ -9612,6 +9614,7 @@ public void uhdrsave(String filename, VipsOption... args) throws VipsError {
/// See also: [VImage#uhdrsave], `Image.write_to_file`
/// @param args Array of VipsOption to apply to this operation
/// @optionalArg Q [VipsOption.Int] Q factor
/// @optionalArg gainmap-scale-factor [VipsOption.Int] The scale factor of base image to gainmap image
/// @optionalArg keep [VipsOption.Int] Which metadata to retain
/// @optionalArg background [VipsOption.ArrayDouble] Background value
/// @optionalArg page-height [VipsOption.Int] Set page height for multipage save
Expand All @@ -9633,6 +9636,7 @@ public VBlob uhdrsaveBuffer(VipsOption... args) throws VipsError {
/// @param target Target to save to
/// @param args Array of VipsOption to apply to this operation
/// @optionalArg Q [VipsOption.Int] Q factor
/// @optionalArg gainmap-scale-factor [VipsOption.Int] The scale factor of base image to gainmap image
/// @optionalArg keep [VipsOption.Int] Which metadata to retain
/// @optionalArg background [VipsOption.ArrayDouble] Background value
/// @optionalArg page-height [VipsOption.Int] Set page height for multipage save
Expand Down
16 changes: 8 additions & 8 deletions core/src/main/java/app/photofox/vipsffm/jextract/VipsRaw.java
Original file line number Diff line number Diff line change
Expand Up @@ -15489,25 +15489,25 @@ public static int VIPS_SBUF_BUFFER_SIZE() {
}
/**
* {@snippet lang=c :
* #define VIPS_VERSION "8.18.0"
* #define VIPS_VERSION "8.18.2"
* }
*/
public static MemorySegment VIPS_VERSION() {
class Holder {
static final MemorySegment VIPS_VERSION
= VipsRaw.LIBRARY_ARENA.allocateFrom("8.18.0");
= VipsRaw.LIBRARY_ARENA.allocateFrom("8.18.2");
}
return Holder.VIPS_VERSION;
}
/**
* {@snippet lang=c :
* #define VIPS_VERSION_STRING "8.18.0"
* #define VIPS_VERSION_STRING "8.18.2"
* }
*/
public static MemorySegment VIPS_VERSION_STRING() {
class Holder {
static final MemorySegment VIPS_VERSION_STRING
= VipsRaw.LIBRARY_ARENA.allocateFrom("8.18.0");
= VipsRaw.LIBRARY_ARENA.allocateFrom("8.18.2");
}
return Holder.VIPS_VERSION_STRING;
}
Expand All @@ -15529,10 +15529,10 @@ public static int VIPS_MAJOR_VERSION() {
public static int VIPS_MINOR_VERSION() {
return VIPS_MINOR_VERSION;
}
private static final int VIPS_MICRO_VERSION = (int)0L;
private static final int VIPS_MICRO_VERSION = (int)2L;
/**
* {@snippet lang=c :
* #define VIPS_MICRO_VERSION 0
* #define VIPS_MICRO_VERSION 2
* }
*/
public static int VIPS_MICRO_VERSION() {
Expand All @@ -15547,10 +15547,10 @@ public static int VIPS_MICRO_VERSION() {
public static int VIPS_LIBRARY_CURRENT() {
return VIPS_LIBRARY_CURRENT;
}
private static final int VIPS_LIBRARY_REVISION = (int)0L;
private static final int VIPS_LIBRARY_REVISION = (int)2L;
/**
* {@snippet lang=c :
* #define VIPS_LIBRARY_REVISION 0
* #define VIPS_LIBRARY_REVISION 2
* }
*/
public static int VIPS_LIBRARY_REVISION() {
Expand Down
9 changes: 5 additions & 4 deletions docs/app.photofox.vipsffm/app/photofox/vipsffm/VImage.html
Original file line number Diff line number Diff line change
Expand Up @@ -12073,7 +12073,8 @@ <h3>uhdrsave</h3>
gainmap recomputation.</p>
<p>If the image is scRGB and has a gainmap, a base image will be computed
and it will be saved as UltraHDR.</p>
<p>If the image is scRGB and has no gainmap, one will be computed.
<p>If the image is scRGB and has no gainmap, one will be computed at a
<code>gainmap_scale_factor</code> of the base image.
This is slow and takes a lot of memory.</p>
<p>See also: <code>Image.write_to_file</code>, <a href="#uhdrload(java.lang.foreign.Arena,java.lang.String,app.photofox.vipsffm.VipsOption...)"><code>uhdrload(java.lang.foreign.Arena, java.lang.String, app.photofox.vipsffm.VipsOption...)</code></a></p>
</div>
Expand All @@ -12084,7 +12085,7 @@ <h3>uhdrsave</h3>
<dt>Throws:</dt>
<dd><code><a href="VipsError.html" title="class in app.photofox.vipsffm">VipsError</a></code></dd>
<dt>Optional arguments:</dt>
<dd>Q <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Q factor, keep <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Which metadata to retain, background <a href="VipsOption.ArrayDouble.html" title="class in app.photofox.vipsffm"><code>VipsOption.ArrayDouble</code></a> Background value, page-height <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Set page height for multipage save, profile <a href="VipsOption.String.html" title="class in app.photofox.vipsffm"><code>VipsOption.String</code></a> Filename of ICC profile to embed, strip <a href="VipsOption.Boolean.html" title="class in app.photofox.vipsffm"><code>VipsOption.Boolean</code></a> Strip all metadata from image</dd>
<dd>Q <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Q factor, gainmap-scale-factor <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> The scale factor of base image to gainmap image, keep <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Which metadata to retain, background <a href="VipsOption.ArrayDouble.html" title="class in app.photofox.vipsffm"><code>VipsOption.ArrayDouble</code></a> Background value, page-height <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Set page height for multipage save, profile <a href="VipsOption.String.html" title="class in app.photofox.vipsffm"><code>VipsOption.String</code></a> Filename of ICC profile to embed, strip <a href="VipsOption.Boolean.html" title="class in app.photofox.vipsffm"><code>VipsOption.Boolean</code></a> Strip all metadata from image</dd>
</dl>
</div>
</section>
Expand All @@ -12104,7 +12105,7 @@ <h3>uhdrsaveBuffer</h3>
<dt>Throws:</dt>
<dd><code><a href="VipsError.html" title="class in app.photofox.vipsffm">VipsError</a></code></dd>
<dt>Optional arguments:</dt>
<dd>Q <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Q factor, keep <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Which metadata to retain, background <a href="VipsOption.ArrayDouble.html" title="class in app.photofox.vipsffm"><code>VipsOption.ArrayDouble</code></a> Background value, page-height <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Set page height for multipage save, profile <a href="VipsOption.String.html" title="class in app.photofox.vipsffm"><code>VipsOption.String</code></a> Filename of ICC profile to embed, strip <a href="VipsOption.Boolean.html" title="class in app.photofox.vipsffm"><code>VipsOption.Boolean</code></a> Strip all metadata from image</dd>
<dd>Q <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Q factor, gainmap-scale-factor <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> The scale factor of base image to gainmap image, keep <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Which metadata to retain, background <a href="VipsOption.ArrayDouble.html" title="class in app.photofox.vipsffm"><code>VipsOption.ArrayDouble</code></a> Background value, page-height <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Set page height for multipage save, profile <a href="VipsOption.String.html" title="class in app.photofox.vipsffm"><code>VipsOption.String</code></a> Filename of ICC profile to embed, strip <a href="VipsOption.Boolean.html" title="class in app.photofox.vipsffm"><code>VipsOption.Boolean</code></a> Strip all metadata from image</dd>
</dl>
</div>
</section>
Expand All @@ -12126,7 +12127,7 @@ <h3>uhdrsaveTarget</h3>
<dt>Throws:</dt>
<dd><code><a href="VipsError.html" title="class in app.photofox.vipsffm">VipsError</a></code></dd>
<dt>Optional arguments:</dt>
<dd>Q <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Q factor, keep <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Which metadata to retain, background <a href="VipsOption.ArrayDouble.html" title="class in app.photofox.vipsffm"><code>VipsOption.ArrayDouble</code></a> Background value, page-height <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Set page height for multipage save, profile <a href="VipsOption.String.html" title="class in app.photofox.vipsffm"><code>VipsOption.String</code></a> Filename of ICC profile to embed, strip <a href="VipsOption.Boolean.html" title="class in app.photofox.vipsffm"><code>VipsOption.Boolean</code></a> Strip all metadata from image</dd>
<dd>Q <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Q factor, gainmap-scale-factor <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> The scale factor of base image to gainmap image, keep <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Which metadata to retain, background <a href="VipsOption.ArrayDouble.html" title="class in app.photofox.vipsffm"><code>VipsOption.ArrayDouble</code></a> Background value, page-height <a href="VipsOption.Int.html" title="class in app.photofox.vipsffm"><code>VipsOption.Int</code></a> Set page height for multipage save, profile <a href="VipsOption.String.html" title="class in app.photofox.vipsffm"><code>VipsOption.String</code></a> Filename of ICC profile to embed, strip <a href="VipsOption.Boolean.html" title="class in app.photofox.vipsffm"><code>VipsOption.Boolean</code></a> Strip all metadata from image</dd>
</dl>
</div>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11383,7 +11383,7 @@ <h2>Method Summary</h2>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">
<div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="../../../../../resource-files/copy.svg" alt="Copy snippet"></button>
<pre class="snippet" id="snippet-VIPS_LIBRARY_REVISION()1"><code class="language-c">#define VIPS_LIBRARY_REVISION 0
<pre class="snippet" id="snippet-VIPS_LIBRARY_REVISION()1"><code class="language-c">#define VIPS_LIBRARY_REVISION 2
</code></pre>
</div>
</div>
Expand Down Expand Up @@ -11803,7 +11803,7 @@ <h2>Method Summary</h2>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">
<div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="../../../../../resource-files/copy.svg" alt="Copy snippet"></button>
<pre class="snippet" id="snippet-VIPS_MICRO_VERSION()1"><code class="language-c">#define VIPS_MICRO_VERSION 0
<pre class="snippet" id="snippet-VIPS_MICRO_VERSION()1"><code class="language-c">#define VIPS_MICRO_VERSION 2
</code></pre>
</div>
</div>
Expand Down Expand Up @@ -15171,7 +15171,7 @@ <h2>Method Summary</h2>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">
<div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="../../../../../resource-files/copy.svg" alt="Copy snippet"></button>
<pre class="snippet" id="snippet-VIPS_VERSION()1"><code class="language-c">#define VIPS_VERSION "8.18.0"
<pre class="snippet" id="snippet-VIPS_VERSION()1"><code class="language-c">#define VIPS_VERSION "8.18.2"
</code></pre>
</div>
</div>
Expand All @@ -15191,7 +15191,7 @@ <h2>Method Summary</h2>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">
<div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="../../../../../resource-files/copy.svg" alt="Copy snippet"></button>
<pre class="snippet" id="snippet-VIPS_VERSION_STRING()1"><code class="language-c">#define VIPS_VERSION_STRING "8.18.0"
<pre class="snippet" id="snippet-VIPS_VERSION_STRING()1"><code class="language-c">#define VIPS_VERSION_STRING "8.18.2"
</code></pre>
</div>
</div>
Expand Down Expand Up @@ -32895,7 +32895,7 @@ <h3>VIPS_VERSION</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/lang/foreign/MemorySegment.html" title="class or interface in java.lang.foreign" class="external-link">MemorySegment</a></span>&nbsp;<span class="element-name">VIPS_VERSION</span>()</div>
<div class="block">
<div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="../../../../../resource-files/copy.svg" alt="Copy snippet"></button>
<pre class="snippet" id="snippet-VIPS_VERSION()2"><code class="language-c">#define VIPS_VERSION "8.18.0"
<pre class="snippet" id="snippet-VIPS_VERSION()2"><code class="language-c">#define VIPS_VERSION "8.18.2"
</code></pre>
</div>
</div>
Expand All @@ -32909,7 +32909,7 @@ <h3>VIPS_VERSION_STRING</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/lang/foreign/MemorySegment.html" title="class or interface in java.lang.foreign" class="external-link">MemorySegment</a></span>&nbsp;<span class="element-name">VIPS_VERSION_STRING</span>()</div>
<div class="block">
<div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="../../../../../resource-files/copy.svg" alt="Copy snippet"></button>
<pre class="snippet" id="snippet-VIPS_VERSION_STRING()2"><code class="language-c">#define VIPS_VERSION_STRING "8.18.0"
<pre class="snippet" id="snippet-VIPS_VERSION_STRING()2"><code class="language-c">#define VIPS_VERSION_STRING "8.18.2"
</code></pre>
</div>
</div>
Expand Down Expand Up @@ -32951,7 +32951,7 @@ <h3>VIPS_MICRO_VERSION</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">int</span>&nbsp;<span class="element-name">VIPS_MICRO_VERSION</span>()</div>
<div class="block">
<div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="../../../../../resource-files/copy.svg" alt="Copy snippet"></button>
<pre class="snippet" id="snippet-VIPS_MICRO_VERSION()2"><code class="language-c">#define VIPS_MICRO_VERSION 0
<pre class="snippet" id="snippet-VIPS_MICRO_VERSION()2"><code class="language-c">#define VIPS_MICRO_VERSION 2
</code></pre>
</div>
</div>
Expand Down Expand Up @@ -32979,7 +32979,7 @@ <h3>VIPS_LIBRARY_REVISION</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">int</span>&nbsp;<span class="element-name">VIPS_LIBRARY_REVISION</span>()</div>
<div class="block">
<div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="../../../../../resource-files/copy.svg" alt="Copy snippet"></button>
<pre class="snippet" id="snippet-VIPS_LIBRARY_REVISION()2"><code class="language-c">#define VIPS_LIBRARY_REVISION 0
<pre class="snippet" id="snippet-VIPS_LIBRARY_REVISION()2"><code class="language-c">#define VIPS_LIBRARY_REVISION 2
</code></pre>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions docs/index-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -19152,7 +19152,7 @@ <h2 class="title" id="I:V">V</h2>
<dd>
<div class="block">
<div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="resource-files/copy.svg" alt="Copy snippet"></button>
<pre class="snippet" id="snippet-VIPS_LIBRARY_REVISION()3"><code class="language-c">#define VIPS_LIBRARY_REVISION 0
<pre class="snippet" id="snippet-VIPS_LIBRARY_REVISION()3"><code class="language-c">#define VIPS_LIBRARY_REVISION 2
</code></pre>
</div>
</div>
Expand Down Expand Up @@ -19530,7 +19530,7 @@ <h2 class="title" id="I:V">V</h2>
<dd>
<div class="block">
<div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="resource-files/copy.svg" alt="Copy snippet"></button>
<pre class="snippet" id="snippet-VIPS_MICRO_VERSION()3"><code class="language-c">#define VIPS_MICRO_VERSION 0
<pre class="snippet" id="snippet-VIPS_MICRO_VERSION()3"><code class="language-c">#define VIPS_MICRO_VERSION 2
</code></pre>
</div>
</div>
Expand Down Expand Up @@ -22533,7 +22533,7 @@ <h2 class="title" id="I:V">V</h2>
<dd>
<div class="block">
<div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="resource-files/copy.svg" alt="Copy snippet"></button>
<pre class="snippet" id="snippet-VIPS_VERSION()3"><code class="language-c">#define VIPS_VERSION "8.18.0"
<pre class="snippet" id="snippet-VIPS_VERSION()3"><code class="language-c">#define VIPS_VERSION "8.18.2"
</code></pre>
</div>
</div>
Expand All @@ -22551,7 +22551,7 @@ <h2 class="title" id="I:V">V</h2>
<dd>
<div class="block">
<div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="resource-files/copy.svg" alt="Copy snippet"></button>
<pre class="snippet" id="snippet-VIPS_VERSION_STRING()3"><code class="language-c">#define VIPS_VERSION_STRING "8.18.0"
<pre class="snippet" id="snippet-VIPS_VERSION_STRING()3"><code class="language-c">#define VIPS_VERSION_STRING "8.18.2"
</code></pre>
</div>
</div>
Expand Down
Loading
Loading