mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 07: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
+1
-1
@@ -39,7 +39,7 @@ module LoadBmp
|
||||
bands = header_data[:bpp] / 8
|
||||
end
|
||||
|
||||
image = Vips::Image.new_from_memory(final_pixel_data, header_data[:width], header_data[:height], bands, :uchar)
|
||||
image = Vips::Image.new_from_memory_copy(final_pixel_data, header_data[:width], header_data[:height], bands, :uchar)
|
||||
|
||||
image = image.flip(:vertical) if header_data[:orientation] == -1
|
||||
|
||||
|
||||
Reference in new issue
Block a user