@@ -70,7 +70,7 @@ <h2 id="usage-heading">Usage</h2>
7070}
7171
7272dependencies {
73- implementation("app.photofox.vips-ffm:vips-ffm-core:1.2.2 ")
73+ implementation("app.photofox.vips-ffm:vips-ffm-core:1.3.0 ")
7474}
7575</ code > </ pre >
7676< p > When running your project you must add < code > --enable-native-access=ALL-UNNAMED</ code > to your JVM runtime arguments. If you
@@ -122,8 +122,7 @@ <h3 id="thumbnail-sample-heading">Thumbnail sample</h3>
122122Vips.run { arena ->
123123 val sourceImage = VImage.newFromFile(
124124 arena,
125- "sample/src/main/resources/sample_images/rabbit.jpg",
126- VipsOption.Enum("access", VipsAccess.ACCESS_SEQUENTIAL) // example of an option
125+ "sample/src/main/resources/sample_images/rabbit.jpg"
127126 )
128127 val sourceWidth = sourceImage.width
129128 val sourceHeight = sourceImage.height
@@ -132,9 +131,9 @@ <h3 id="thumbnail-sample-heading">Thumbnail sample</h3>
132131 val outputPath = workingDirectory.resolve("rabbit_copy.jpg")
133132 sourceImage.writeToFile(outputPath.absolutePathString())
134133
135- val thumbnail = sourceImage.thumbnail (
136- "sample/src/main/resources/sample_images/rabbit.jpg" ,
137- 400
134+ val thumbnail = sourceImage.thumbnailImage (
135+ 400 ,
136+ VipsOption.Boolean("auto-rotate", true) // example of an option
138137 )
139138 val thumbnailWidth = thumbnail.width
140139 val thumbnailHeight = thumbnail.height
@@ -218,6 +217,13 @@ <h2 id="native-library-loading-heading">Native library loading</h2>
218217< li > < code > vipsffm.abinumber.glib.override</ code > , default: < code > 0</ code > </ li >
219218< li > < code > vipsffm.abinumber.gobject.override</ code > , default: < code > 0</ code > </ li >
220219</ ul >
220+ < p > If you want to manually override the library lookup path for any of the above (for example, if you're using a platform
221+ like Android where it's hard to set the system library path), you can do so using these system properties:</ p >
222+ < ul >
223+ < li > libvips: < code > vipsffm.libpath.vips.override</ code > (eg < code > /opt/homebrew/lib/libvips.dylib</ code > )</ li >
224+ < li > glib: < code > vipsffm.libpath.glib.override</ code > </ li >
225+ < li > gobject: < code > vipsffm.libpath.gobject.override</ code > </ li >
226+ </ ul >
221227< h2 id ="project-goals-heading "> Project goals</ h2 >
222228< p > Ideas and suggestions are welcome, but please make sure they fit in to these goals, or you have a good argument about
223229why a goal should change!</ p >
0 commit comments