We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83139c0 commit fed73ecCopy full SHA for fed73ec
spec/image_spec.rb
@@ -65,6 +65,8 @@ def has_jpeg?
65
memory.put_array_of_uchar(0, Array.new(16 * 16, 128))
66
67
data = FFI::Pointer.new(memory)
68
+ # JRuby's FFI implementation looses the size information
69
+ data = data.slice(0, 16 * 16) if defined?(JRUBY_VERSION)
70
71
x = Vips::Image.new_from_memory data, 16, 16, 1, :uchar
72
@@ -113,6 +115,9 @@ def has_jpeg?
113
115
114
116
117
118
119
120
+
121
x = Vips::Image.new_from_memory_copy data, 16, 16, 1, :uchar
122
123
expect(x.width).to eq(16)
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments