Skip to content

Commit d68fa4f

Browse files
authored
Add note to usage example about untrusted operations (#162)
1 parent 74e6f9d commit d68fa4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ import app.photofox.vipsffm.enums.VipsAccess
5656
// ...
5757

5858
// Call once to initialise libvips when your program starts, from any thread
59+
// Note that by default this blocks untrusted operations (like loading PDFs)
60+
// Use `Vips.init(true, ...)` to permit untrusted operations
5961
Vips.init()
6062

6163
// Use `Vips.run` to wrap your usage of the API, and get an arena with an appropriate lifetime to use

0 commit comments

Comments
 (0)