From cb2d9188b012a91b4b82d9340a15024f2bf2c22e Mon Sep 17 00:00:00 2001 From: Mth0158 Date: Mon, 25 Nov 2024 18:25:08 +0100 Subject: [PATCH] try jpg instead of png, maybe more luck? --- ...urns_the_right_metadata_for_any_attachable.rb | 6 +++--- test/dummy/public/image_700x500_rotated_90.jpg | Bin 0 -> 4690 bytes test/dummy/public/image_700x500_rotated_90.png | Bin 4656 -> 0 bytes 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 test/dummy/public/image_700x500_rotated_90.jpg delete mode 100644 test/dummy/public/image_700x500_rotated_90.png diff --git a/test/analyzers/image_analyzers/shared_examples/returns_the_right_metadata_for_any_attachable.rb b/test/analyzers/image_analyzers/shared_examples/returns_the_right_metadata_for_any_attachable.rb index 7a5610c7..d51d39d1 100644 --- a/test/analyzers/image_analyzers/shared_examples/returns_the_right_metadata_for_any_attachable.rb +++ b/test/analyzers/image_analyzers/shared_examples/returns_the_right_metadata_for_any_attachable.rb @@ -174,9 +174,9 @@ def is_expected_to_return_empty_metadata describe "rotated image" do let(:attachable) do ActiveStorage::Blob.create_and_upload!( - io: File.open(Rails.root.join('public', 'image_700x500_rotated_90.png')), - filename: 'image_700x500_rotated_90.png', - content_type: 'image/png', + io: File.open(Rails.root.join('public', 'image_700x500_rotated_90.jpg')), + filename: 'image_700x500_rotated_90.jpg', + content_type: 'image/jpeg', service_name: 'test' ) end diff --git a/test/dummy/public/image_700x500_rotated_90.jpg b/test/dummy/public/image_700x500_rotated_90.jpg new file mode 100644 index 0000000000000000000000000000000000000000..59f973da7657d3759fd0209b82a174ea71cc3cdb GIT binary patch literal 4690 zcmeHKX;c&0x~*t~;>95yK~xCcAkZ37nIcFM^frh>ga=53fY5-=6cJ+t0wj3f#a0G8 zC@2B}(gG4S3=ISjnN)(gQDQm-5(yy9Y=~(r!aQEO*ITb|`QzPRZ>{&^omzF)_tn|o z-us-h)~TwscWb`_J6uklJ_*2J003LRfVDv&*ohhu3IJ!$00#g7*bHdEz63U|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5k>*tk6f9PeQp*7aE~?xyRb3bs4GR;3GOT=@@(T2QpuK{%ZIDUWP;s}`*!^u{6? zwrL=)b;%cYuT_Y>@r_E>-8-m-{)QWF#?op67p#x}D*?>wviO`|G9&nKz)Wti zv>A#J{TOQR8)pb^ik^FFzofiS)f%x3j%J+7U}m*`H^tASQ#1NC&oAxcy*lX4ekFNb zxAhR4B0S3N;H{8)1=D&*B<_EI`dFV(#rtfr$GR$9gwaHK%`ig$@tAzt3qkVSFUt4( zA)+_-1K3So19}3pxV^Cpg*}U_$j)6yRB}9BkyZoNU+WGvGO}fexBcy3?E~o^k4l-^ zBLWP;0gWt<>6(bPZWE%gMO^THo+_bF-5rUij3@5C% zc4E?13cCEtxs2T<%h}e6{mSrCPC6km#xd?jf2g@nUI*Ttnxno75!6eZb#*I7;*xHi zvF;H44Zhe07T+{G1)nj^Xa4uak}m3#2D$4QM5ije(_;v@a$Q^wDHb><#yvY zT<81j{m-EmbgF}!&9l2_z5H3kEA9r^r*m=3nS*6s8YsUQM}m<#G6ISRcG_640cp(k z&>DS8qU=fQO~aHiGv*)`rwA@8Q&3tmCOF)Oinws0B=Hv|Dgr4VshWW|79;+C)!zB2% z;(?dVR)(vM<-zIabWn+u@RTw7)a++&9x`>A^yb!qgj9tf}NS#`X%qkgv0VPxhn2zsWYO_52eRptoiK literal 0 HcmV?d00001 diff --git a/test/dummy/public/image_700x500_rotated_90.png b/test/dummy/public/image_700x500_rotated_90.png deleted file mode 100644 index 1ee8cbbe9d8c5d4db2519ae372a3ed9a4473144b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4656 zcmeHLc{rQt+Rt>E?kFwO4rOTRlxoqISgS>_w~H@?|$C9 zb~ccGyASUMfk68#FPYhcK;Q8}pe+qM0Rza;L;5|iDEVBnw+4ZtR6(Gd2_VoKV7kcx zfx=INKwqwdK>ANWAi2<7(l3U9V~e*H#0<2FOQ$vg+OE(`P$UQ>(JKCZ*Ma!m7clNX zSz4R#;O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