@@ -226,7 +226,7 @@ public function save($filename, $image_type = null, $quality = null, $permission
226
226
if ( !empty ($ exact_size ) && is_array ($ exact_size ) ){
227
227
$ dest_image = imagecreatetruecolor ($ exact_size [0 ], $ exact_size [1 ]);
228
228
} else {
229
- $ dest_image = imagecreatetruecolor ($ this ->getDestWidth (), $ this ->getDestHeight ());
229
+ $ dest_image = imagecreatetruecolor (( int ) $ this ->getDestWidth (), ( int ) $ this ->getDestHeight ());
230
230
}
231
231
232
232
$ background = imagecolorallocatealpha ($ dest_image , 255 , 255 , 255 , 1 );
@@ -253,9 +253,9 @@ public function save($filename, $image_type = null, $quality = null, $permission
253
253
$ background = imagecolorallocate ($ dest_image , 255 , 255 , 255 );
254
254
imagefilledrectangle ($ dest_image , 0 , 0 , $ exact_size [0 ], $ exact_size [1 ], $ background );
255
255
} else {
256
- $ dest_image = imagecreatetruecolor ($ this ->getDestWidth (), $ this ->getDestHeight ());
256
+ $ dest_image = imagecreatetruecolor (( int ) $ this ->getDestWidth (), ( int ) $ this ->getDestHeight ());
257
257
$ background = imagecolorallocate ($ dest_image , 255 , 255 , 255 );
258
- imagefilledrectangle ($ dest_image , 0 , 0 , $ this ->getDestWidth (), $ this ->getDestHeight (), $ background );
258
+ imagefilledrectangle ($ dest_image , 0 , 0 , ( int ) $ this ->getDestWidth (), ( int ) $ this ->getDestHeight (), $ background );
259
259
}
260
260
261
261
imagealphablending ($ dest_image , false );
@@ -269,9 +269,9 @@ public function save($filename, $image_type = null, $quality = null, $permission
269
269
$ background = imagecolorallocate ($ dest_image , 255 , 255 , 255 );
270
270
imagefilledrectangle ($ dest_image , 0 , 0 , $ exact_size [0 ], $ exact_size [1 ], $ background );
271
271
} else {
272
- $ dest_image = imagecreatetruecolor ($ this ->getDestWidth (), $ this ->getDestHeight ());
272
+ $ dest_image = imagecreatetruecolor (( int ) $ this ->getDestWidth (), ( int ) $ this ->getDestHeight ());
273
273
$ background = imagecolorallocate ($ dest_image , 255 , 255 , 255 );
274
- imagefilledrectangle ($ dest_image , 0 , 0 , $ this ->getDestWidth (), $ this ->getDestHeight (), $ background );
274
+ imagefilledrectangle ($ dest_image , 0 , 0 , ( int ) $ this ->getDestWidth (), ( int ) $ this ->getDestHeight (), $ background );
275
275
}
276
276
277
277
imagealphablending ($ dest_image , false );
@@ -284,13 +284,13 @@ public function save($filename, $image_type = null, $quality = null, $permission
284
284
if ( !empty ($ exact_size ) && is_array ($ exact_size ) ){
285
285
$ dest_image = imagecreate ($ exact_size [0 ], $ exact_size [1 ]);
286
286
} else {
287
- $ dest_image = imagecreate ($ this ->getDestWidth (), $ this ->getDestHeight ());
287
+ $ dest_image = imagecreate (( int ) $ this ->getDestWidth (), ( int ) $ this ->getDestHeight ());
288
288
}
289
289
} else {
290
290
if ( !empty ($ exact_size ) && is_array ($ exact_size ) ){
291
291
$ dest_image = imagecreatetruecolor ($ exact_size [0 ], $ exact_size [1 ]);
292
292
} else {
293
- $ dest_image = imagecreatetruecolor ($ this ->getDestWidth (), $ this ->getDestHeight ());
293
+ $ dest_image = imagecreatetruecolor (( int ) $ this ->getDestWidth (), ( int ) $ this ->getDestHeight ());
294
294
}
295
295
}
296
296
@@ -308,9 +308,9 @@ public function save($filename, $image_type = null, $quality = null, $permission
308
308
$ background = imagecolorallocate ($ dest_image , 255 , 255 , 255 );
309
309
imagefilledrectangle ($ dest_image , 0 , 0 , $ exact_size [0 ], $ exact_size [1 ], $ background );
310
310
} else {
311
- $ dest_image = imagecreatetruecolor ($ this ->getDestWidth (), $ this ->getDestHeight ());
311
+ $ dest_image = imagecreatetruecolor (( int ) $ this ->getDestWidth (), ( int ) $ this ->getDestHeight ());
312
312
$ background = imagecolorallocate ($ dest_image , 255 , 255 , 255 );
313
- imagefilledrectangle ($ dest_image , 0 , 0 , $ this ->getDestWidth (), $ this ->getDestHeight (), $ background );
313
+ imagefilledrectangle ($ dest_image , 0 , 0 , ( int ) $ this ->getDestWidth (), ( int ) $ this ->getDestHeight (), $ background );
314
314
}
315
315
break ;
316
316
}
0 commit comments