imageio / imageio-binaries Goto Github PK
View Code? Open in Web Editor NEWRepo to place the (relatively small) binary libraries
Repo to place the (relatively small) binary libraries
imageio-binaries ================ Repo to place the (relatively small) binary libraries The distribution of these precompiled binaries of the FreeImage library is governed by the FreeImage license, included here as "license-fi.txt". The original source code is available from http://freeimage.sourceforge.net/ No modifications to this code have been made beyond compilation for various platforms / architectures. Win32 version from Freeimage project. Win64 version from http://imageresizing.net/plugins/freeimage
I am trying to read *.hdr image using imageio python library. I am using the free image plugin for imageio in order to do this.
imageio.plugins.freeimage.download()
However I get the following error even though I am connected to the internet.
Ascertaining binaries for: freeimage.
Imageio: 'libfreeimage-3.16.0-osx10.6.dylib' was not found on your computer; downloading it now.
Error while fetching file: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)>.
Error while fetching file: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)>.
Error while fetching file: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)>.
Error while fetching file: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)>.
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/imageio_download_bin", line 8, in <module>
sys.exit(download_bin_main())
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/imageio/__main__.py", line 95, in download_bin_main
download_bin(plugin_names=args.plugin, package_dir=args.package_dir)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/imageio/__main__.py", line 61, in download_bin
mod.download(directory=directory)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/imageio/plugins/_freeimage.py", line 66, in download
get_remote_file(fname=fname, directory=directory, force_download=force_download)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/imageio/core/fetching.py", line 128, in get_remote_file
_fetch_file(url, filename)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/imageio/core/fetching.py", line 187, in _fetch_file
% os.path.basename(file_name)
OSError: Unable to download 'libfreeimage-3.16.0-osx10.6.dylib'. Perhaps there is a no internet connection? If there is, please report this problem.
Development environment
MacOS 11.2.1
I even tried manually downloading the file from github but did not succeed
in reading the HDR files.
Hello,
I have a question about the ffmpeg.exe file. I wrote a discord bot using discord.py, which plays audio when somebody joins a channel. I want that program to run in the background, so i use a .bat and a .vbs file so no command prompt appears when starting the script. Everytime the bot creates an audio source from mp3 files, it prints out a line "[mp3 @ 0000020168869040] Estimating duration from bitrate, this may be inaccurate". Therefore a console windows opens for 1sec to display this message and closes afterwards, which is really annoying. I use the ffmpeg-win64-v4.2.2.exe file with the discord.py lib to return an audio source, which can be played later "audio_source = discord.FFmpegPCMAudio(executable="E:/PythonPrograms/DiscordBotHallo/Dateien/ffmpeg-win64-v4.2.2.exe", source=source)". I actually dont know if this line of text comes from the ffmpeg .exe file or from the discord.py lib itself, but i got no answer on the discord server of the discord.py lib so i thought i ask my question where i downloaded the .exe file.
So if this message come from the .exe file. Is there a way to prevent this, so i can run my program in the background without any console window appearing?
Thanks
Cookie
my code if needed:
main.txt
Guys I would like to save an 16 rgb bit array as .exr with imageio
rgb_array = np.zeros((760, 1016, 3), dtype=np.uint16)
rgb_array[:, :, 0] = array16[1::2, 1::2] # red
# Must avoid overflowing 16-bits in the addition here:
rgb_array[:, :, 1] = (array16[0::2, 1::2].astype(int) + array16[1::2, 0::2]) / 2 # green
rgb_array[:, :, 2] = array16[0::2, 0::2] # blue
imageio.imwrite(f'{exp}rgb.exr', rgb_array)
It would be useful to have scripts included here to regenerate these binaries.
That would allow other people to see what is needed to build there own compatible libraries, and also allow auditing that these generated binaries are reproducible , ensuring they are accurate builds without any injected code.
Commit 3104b27 breaks ffmpeg download for older versions of imageio. For example 2.1.2. It used to download files named like "ffmpeg.linux64", and imageio.plugins.ffmpeg.download() now fails with 404 error
I recommend to revert this commit.
On imageio/core/findlib.py, load_lib function, Occur Exception below.
---------- ERROR LOG -----------
One or more freeimage libraries were found, but could not be loaded due to the following errors:
/User/###### PERSONAL PATH ###### /libfreeimage.dylib:
dlopen(/Users/###### PERSONAL PATH ###### /libfreeimage.dylib, 0x0006): tried: '/Users/###### PERSONAL PATH ###### /libfreeimage.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/###### PERSONAL PATH ###### /libfreeimage.dylib' (no such file), '/Users/###### PERSONAL PATH ###### /libfreeimage.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/Users/###### PERSONAL PATH ###### /libfreeimage-3.16.0-osx10.6.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/###### PERSONAL PATH ###### /libfreeimage-3.16.0-osx10.6.dylib' (no such file), '/Users/###### PERSONAL PATH ###### /libfreeimage-3.16.0-osx10.6.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
------------------------------------
As you know, that dylib build by x86_64.
But, Apple silicon need arm64 binary library.
How Are You Getting The Different FFmpeg Binaries. And From Where do You Got Them?
Exposure value is a scalar multiplier. By default, writing to HDR images seems to result in files with exposure = 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.