From 16808a7ec63f2708d7060dcc16cde21aaf1b633b Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Tue, 26 May 2026 11:42:13 +0300 Subject: [PATCH] use pngload_buffer --- lib/load_ico.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/load_ico.rb b/lib/load_ico.rb index a8c3061d..d956092c 100644 --- a/lib/load_ico.rb +++ b/lib/load_ico.rb @@ -43,7 +43,7 @@ module LoadIco raise ArgumentError, 'Unable to load' unless image_data_bytes && image_data_bytes.bytesize == best_entry[:size] - return Vips::Image.new_from_buffer(image_data_bytes, '') if image_data_bytes.start_with?(PNG_SIGNATURE) + return Vips::Image.pngload_buffer(image_data_bytes) if image_data_bytes.start_with?(PNG_SIGNATURE) image = load_image_entry(image_data_bytes, best_entry[:width], best_entry[:height])