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 {
67
67
'retina_images ' => 'disabled ' ,
68
68
'lazyload_type ' => 'fixed ' ,
69
69
'limit_dimensions ' => 'enabled ' ,
70
- 'limit_height ' => 1080 ,
70
+ 'limit_height ' => 4000 ,
71
71
'limit_width ' => 1920 ,
72
72
'resize_smart ' => 'disabled ' ,
73
73
'no_script ' => 'disabled ' ,
Original file line number Diff line number Diff line change @@ -233,13 +233,13 @@ public function test_limit_dimensions_default() {
233
233
234
234
$ replaced_content = Optml_Manager::instance ()->process_images_from_content ( self ::IMG_TAGS_LIMIT_DIMENSIONS ['portrait ' ] );
235
235
$ 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
238
238
239
239
$ replaced_content = Optml_Manager::instance ()->process_images_from_content ( self ::IMG_TAGS_LIMIT_DIMENSIONS ['landscape ' ] );
240
240
$ 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 );
243
243
244
244
$ replaced_content = Optml_Manager::instance ()->process_images_from_content ( self ::IMG_TAGS_LIMIT_DIMENSIONS ['equal ' ] );
245
245
$ this ->assertStringContainsString ( 'i.optimole.com ' , $ replaced_content );
You can’t perform that action at this time.
0 commit comments