mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
use new_from_memory_copy
This commit is contained in:
1 parent
d5738a0631
commit
9fcaef4cf7
4 files changed
+6
-6
No files matched your search
+2
-2
@@ -202,13 +202,13 @@ module LoadIco
|
||||
|
||||
return nil unless pixel_data_string.bytesize == expected_bytes && expected_bytes.positive?
|
||||
|
||||
Vips::Image.new_from_memory(
|
||||
Vips::Image.new_from_memory_copy(
|
||||
pixel_data_string,
|
||||
dib_width,
|
||||
image_pixel_height,
|
||||
4,
|
||||
:uchar
|
||||
)
|
||||
).copy(interpretation: :srgb)
|
||||
end
|
||||
# rubocop:enable Metrics
|
||||
end
|
||||
Reference in new issue
Block a user