File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class Optml_Settings {
6767 'retina_images ' => 'disabled ' ,
6868 'lazyload_type ' => 'fixed ' ,
6969 'limit_dimensions ' => 'enabled ' ,
70- 'limit_height ' => 1080 ,
70+ 'limit_height ' => 4000 ,
7171 'limit_width ' => 1920 ,
7272 'resize_smart ' => 'disabled ' ,
7373 'no_script ' => 'disabled ' ,
Original file line number Diff line number Diff line change @@ -233,13 +233,13 @@ public function test_limit_dimensions_default() {
233233
234234 $ replaced_content = Optml_Manager::instance ()->process_images_from_content ( self ::IMG_TAGS_LIMIT_DIMENSIONS ['portrait ' ] );
235235 $ this ->assertStringContainsString ( 'i.optimole.com ' , $ replaced_content );
236- $ this ->assertStringContainsString ( '/w:720 / ' , $ replaced_content );
237- $ this ->assertStringContainsString ( '/h:1080 / ' , $ replaced_content );
236+ $ this ->assertStringContainsString ( '/w:1920 / ' , $ replaced_content );
237+ $ this ->assertStringContainsString ( '/h:2880 / ' , $ replaced_content ); // the height is 1.5 times the width because the original image is 2:3 ratio
238238
239239 $ replaced_content = Optml_Manager::instance ()->process_images_from_content ( self ::IMG_TAGS_LIMIT_DIMENSIONS ['landscape ' ] );
240240 $ this ->assertStringContainsString ( 'i.optimole.com ' , $ replaced_content );
241- $ this ->assertStringContainsString ( '/w:1620 / ' , $ replaced_content );
242- $ this ->assertStringContainsString ( '/h:1080 / ' , $ replaced_content );
241+ $ this ->assertStringContainsString ( '/w:1920 / ' , $ replaced_content );
242+ $ this ->assertStringContainsString ( '/h:1280 / ' , $ replaced_content );
243243
244244 $ replaced_content = Optml_Manager::instance ()->process_images_from_content ( self ::IMG_TAGS_LIMIT_DIMENSIONS ['equal ' ] );
245245 $ this ->assertStringContainsString ( 'i.optimole.com ' , $ replaced_content );
You can’t perform that action at this time.
0 commit comments