File tree 4 files changed +5
-5
lines changed
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
41
41
42
42
## Changelog
43
43
44
- ### v1.0.0 (21 -07-2022)
44
+ ### v1.0.0 (31 -07-2022)
45
45
- Add avatar resize
46
46
- Add Version check
47
47
- 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
41
41
42
42
## Changelog
43
43
44
- ### v1.0.0 (21 -07-2022)
44
+ ### v1.0.0 (31 -07-2022)
45
45
- Add avatar resize
46
46
- Version check
47
47
- Check system requirement
Original file line number Diff line number Diff line change 4
4
"description" : " Using ImageMagick php librarie for resize image attachments and creating thumbnails." ,
5
5
"homepage" : " https://github.com/IMC-GER/phpBB-Image-upload-use-ImageMagick/tags" ,
6
6
"version" : " 1.0.0" ,
7
- "time" : " 2022-07-21 " ,
7
+ "time" : " 2022-07-31 " ,
8
8
"license" : " GPL-2.0-only" ,
9
9
"authors" : [{
10
10
"name" : " Thorsten Ahlers" ,
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ public function imcger_modify_uploaded_file($event)
220
220
$ filedata_array = $ event ['filedata ' ];
221
221
222
222
/* set new file size */
223
- $ filedata_array ['filesize ' ] = $ image ->getImageLength ();
223
+ $ filedata_array ['filesize ' ] = $ filesize ? $ filesize : $ image ->getImageBlob ();
224
224
225
225
/* if image format change to JPEG set filedata to JPEG */
226
226
if ($ image_format == 'JPEG ' && $ event ['filedata ' ]['mimetype ' ] != 'image/jpeg ' )
@@ -294,7 +294,7 @@ function imcger_modify_uploaded_avatar($event)
294
294
295
295
/* set return value new file size*/
296
296
$ filedata_array = $ event ['filedata ' ];
297
- $ filedata_array ['filesize ' ] = $ avatar ->getImageLength ();
297
+ $ filedata_array ['filesize ' ] = $ avatar ->getImageBlob ();
298
298
$ event ['filedata ' ] = $ filedata_array ;
299
299
300
300
$ avatar ->clear ();
You can’t perform that action at this time.
0 commit comments