image_intensities 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27d1d96b127e92df52f39d5d39bcec844d621a0e6662740f35e0fe37321fb222
4
- data.tar.gz: 8de91bfe951044057f87bd2bfda0e6ffc7933eff773f6b6767fcf0011c849ee4
3
+ metadata.gz: 8398631d7952cf4f4cd00e928b433386d2bdbbd0fbdfef4526168f197966f182
4
+ data.tar.gz: 5a549a6030aeb1d6f7e676107957c0910001bb1c2dd34692a48a879a7e59ee3f
5
5
  SHA512:
6
- metadata.gz: f32230646c4b06504dfd283d9f90322fc533747fd90369b937f0c23ac9d341d43fbc99860560eaeefd17bad5b56ba954b247e8d9ebfc41ebbcbe97abec687c80
7
- data.tar.gz: 43ed57c1bc8997b96a1fd41f923cd41b62dd6cbca87a6d0b4b5ad0b9b986cec56459ede104b5ff646d33877bd2824cc8e10d80cc715bb8ba307da41e29003fa7
6
+ metadata.gz: cb7ce24fa53c0ddf75b0b859540eeea5df9512678fb1189be54e5cd0360263f5d0c0998c6eb70e2641995f94179453b9b4455f6b3bcc43c56cf09222b444f24c
7
+ data.tar.gz: e2469ecec6b847ece09d7bf835bc12dfc9e280c0d972e2c227d70edd8a4ccd34742711a3fb5458f2a6857d33eabdf2fd4785c2b549a5745db21eec8e423c73d7
@@ -6,6 +6,11 @@
6
6
 
7
7
  #include "definitions.h"
8
8
 
9
+ static void user_warning_fn(png_structp png_ptr, png_const_charp warning_msg)
10
+ {
11
+ // discard
12
+ }
13
+
9
14
  raster_data read_png_file(const char *file_name)
10
15
  {
11
16
  FILE *fp = NULL;
@@ -21,7 +26,7 @@ raster_data read_png_file(const char *file_name)
21
26
 
22
27
  // These lines will not fail under any usual circumstances, so it's okay
23
28
  // to leak the png ptr if the info ptr can't be allocated
24
- png_structp png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
29
+ png_structp png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, user_warning_fn);
25
30
  png_infop info_ptr = png_create_info_struct(png_ptr);
26
31
 
27
32
  if (!png_ptr || !info_ptr) {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ImageIntensities
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_intensities
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liam P. White