Reading png using dart ffi and libpng

Issue I am trying to use libpng1.6 to load a png from file, but the execution fails with a segmentation fault. I load the library and libpng function called png_image_begin_read_from_file as shown: final dylib = ffi.DynamicLibrary.open( "/opt/homebrew/Cellar/libpng/1.6.37/lib/libpng.dylib"); final dart_function_t png_image_begin_read_from_file

Continue reading