@@ -75,6 +75,9 @@ discard block |
||
75 | 75 | return $image->writeImages($save_filename, true); |
76 | 76 | } |
77 | 77 | |
78 | + /** |
|
79 | + * @param string $load_filename |
|
80 | + */ |
|
78 | 81 | protected function get_target_sizes( $load_filename ) { |
79 | 82 | $image = wp_get_image_editor( $load_filename ); |
80 | 83 | $w = $this->w; |
@@ -142,7 +145,7 @@ discard block |
||
142 | 145 | * (ex: /src/var/www/wp-content/uploads/my-pic.jpg) |
143 | 146 | * @param string $save_filename filepath (not URL) where result file should be saved |
144 | 147 | * (ex: /src/var/www/wp-content/uploads/my-pic-300x200-c-default.jpg) |
145 | - * @return bool true if everything went fine, false otherwise |
|
148 | + * @return boolean|null true if everything went fine, false otherwise |
|
146 | 149 | */ |
147 | 150 | public function run($load_filename, $save_filename) { |
148 | 151 | //should be resized by gif resizer |