Question: copy bundled libvips to another directory
See original GitHub issueIs there possibility to set the directory for bundled libvips before runtime? I don’t want to have all the dll’s in my working directory, I’d prefer something like “Release/vips/”.
<UseGlobalLibvips>true</UseGlobalLibvips>
<LibvipsDLLPath>C:\vips-dev-w64-web\bin</LibvipsDLLPath>
This just copies the vips in selected directory to the output directory. I can’t set EnvironmentVariable this way:
private static void SetVipsPath()
{
string executingAssemblyFile = Assembly.GetExecutingAssembly().GetName().CodeBase.Replace("file:///", null);
string executingDirectory = Path.GetDirectoryName(executingAssemblyFile);
string vipsPath = $"{Path.Combine(executingDirectory, "vips")};";
Environment.SetEnvironmentVariable("PATH", vipsPath);
}
either, because libvips’s Initializer is called before runtime and throws exception because can’t find libvips in my output directory.
Thanks in advance for your reply!
Issue Analytics
- State:
- Created 5 years ago
- Comments:18 (10 by maintainers)
Top Results From Across the Web
Adding libvips to a Rails 7 Docker image
I'm new to Docker and trying to create a Dockerfile for this new Rails 7 app. I'm using vips instead of imagemagick for...
Read more >I can't open my project - Crash while consolidating
Hi, I recently had to change my computer and I moved all my Tropy projects to the new one. I replicated the exact...
Read more >Jemalloc error on new app - Questions / Help
Hi, I've been trying to deploy an app and I keep seeing this in the logs and on ssh ERROR: ld.so: object ...
Read more >How to Fix NPM Sharp Command Failed error
Guide on troubleshooting failing NPM install of Sharp with the command failed error!
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for testing! I’ll publish a new version (1.0.6) on NuGet with this improvement in the course of next week.
See: https://github.com/kleisauke/net-vips/issues/21#issuecomment-456761406.