File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ For full functionality "Maximum avatar file size" in "ACP" > "Board configuratio
4141
4242## Changelog
4343
44- ### v1.0.0 (21 -07-2022)
44+ ### v1.0.0 (31 -07-2022)
4545- Add avatar resize
4646- Add Version check
4747- Add Controller for ACP template
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ For full functionality "Maximum avatar file size" in "ACP" > "Board configuratio
4141
4242## Changelog
4343
44- ### v1.0.0 (21 -07-2022)
44+ ### v1.0.0 (31 -07-2022)
4545- Add avatar resize
4646- Version check
4747- Check system requirement
Original file line number Diff line number Diff line change 44 "description" : " Using ImageMagick php librarie for resize image attachments and creating thumbnails." ,
55 "homepage" : " https://github.com/IMC-GER/phpBB-Image-upload-use-ImageMagick/tags" ,
66 "version" : " 1.0.0" ,
7- "time" : " 2022-07-21 " ,
7+ "time" : " 2022-07-31 " ,
88 "license" : " GPL-2.0-only" ,
99 "authors" : [{
1010 "name" : " Thorsten Ahlers" ,
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ public function imcger_modify_uploaded_file($event)
220220 $ filedata_array = $ event ['filedata ' ];
221221
222222 /* set new file size */
223- $ filedata_array ['filesize ' ] = $ image ->getImageLength ();
223+ $ filedata_array ['filesize ' ] = $ filesize ? $ filesize : $ image ->getImageBlob ();
224224
225225 /* if image format change to JPEG set filedata to JPEG */
226226 if ($ image_format == 'JPEG ' && $ event ['filedata ' ]['mimetype ' ] != 'image/jpeg ' )
@@ -294,7 +294,7 @@ function imcger_modify_uploaded_avatar($event)
294294
295295 /* set return value new file size*/
296296 $ filedata_array = $ event ['filedata ' ];
297- $ filedata_array ['filesize ' ] = $ avatar ->getImageLength ();
297+ $ filedata_array ['filesize ' ] = $ avatar ->getImageBlob ();
298298 $ event ['filedata ' ] = $ filedata_array ;
299299
300300 $ avatar ->clear ();
You can’t perform that action at this time.
0 commit comments