Skip to content

Commit 0c4e4af

Browse files
authored
v0.0.2
1 parent 62f3afe commit 0c4e4af

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@ It can change the image size and/or the image file size. Rotate thumbnails accor
2424
Copy the extension to `phpBB3/ext/imcger/imgupload`.
2525
Go to "ACP" > "Customise" > "Manage extensions" and enable the "Image upload use ImageMagick" extension.
2626
For full functionality "Maximum file size" in "ACP" > "Posting" > "Attachment settings" must be set to 0. This is done automatically during the migration.
27+
For full functionality "Maximum image dimensions" in "ACP" > "Posting" > "Attachment settings" must be set to 0. This is done automatically during the migration.
28+
29+
## Update
30+
For update from v0.01 to v0.0.2 please `disable` the extension and `delete data` before copy the new files to `phpBB3/ext/imcger/imgupload`.
2731

2832
## Changelog
2933

34+
### v0.0.2 (19-02-2022) Code changes
35+
3036
### v0.0.1 (18-02-2022)
3137

3238
## Uninstallation

imcger/imgupload/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@ It can change the image size and/or the image file size. Rotate thumbnails accor
2424
Copy the extension to `phpBB3/ext/imcger/imgupload`.
2525
Go to "ACP" > "Customise" > "Manage extensions" and enable the "Image upload use ImageMagick" extension.
2626
For full functionality "Maximum file size" in "ACP" > "Posting" > "Attachment settings" must be set to 0. This is done automatically during the migration.
27+
For full functionality "Maximum image dimensions" in "ACP" > "Posting" > "Attachment settings" must be set to 0. This is done automatically during the migration.
28+
29+
## Update
30+
For update from v0.01 to v0.0.2 please `disable` the extension and `delete data` before copy the new files to `phpBB3/ext/imcger/imgupload`.
2731

2832
## Changelog
2933

34+
### v0.0.2 (19-02-2022) Code changes
35+
3036
### v0.0.1 (18-02-2022)
3137

3238
## Uninstallation

imcger/imgupload/acp/main_module.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function main($id, $mode)
4545
$config->set('imcger_imgupload_max_width', $request->variable('imcger_imgupload_max_width', 0));
4646
$config->set('imcger_imgupload_max_height', $request->variable('imcger_imgupload_max_height', 0));
4747
$config->set('imcger_imgupload_max_filesize', $max_filesize);
48-
$config->set('imcger_imgupload_del_exif', $request->variable('imcger_imgupload_del_exif', 0));
48+
$config->set('img_strip_metadata', $request->variable('imcger_imgupload_del_exif', 0));
4949

5050
trigger_error($user->lang('ACP_IMCGER_SETTINGS_SAVED') . adm_back_link($this->u_action));
5151
}
@@ -60,7 +60,7 @@ public function main($id, $mode)
6060
'IMCGER_MAX_HEIGHT' => $config['imcger_imgupload_max_height'],
6161
'IMCGER_MAX_FILESIZE' => $filesize['value'],
6262
'IMCGER_UNIT' => $filesize['si_identifier'],
63-
'IMCGER_DEL_EXIF' => $config['imcger_imgupload_del_exif'],
63+
'IMCGER_DEL_EXIF' => $config['img_strip_metadata'],
6464
));
6565
}
6666
}

imcger/imgupload/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name" : "imcger/imgupload",
33
"type" : "phpbb-extension",
44
"description" : "Using ImageMagick php librarie for image attachments and creating thumbnails.",
5-
"homepage" : "https://github.com/IMC-GER/phpBB-Image-upload-use-ImageMagick",
6-
"version" : "0.0.1",
5+
"homepage" : "https://github.com/IMC-GER/phpBB-Image-Upload",
6+
"version" : "0.0.2",
77
"time" : "2022-02-18",
88
"license" : "GPL-2.0-only",
99
"authors" : [{

imcger/imgupload/migrations/install_settings.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,16 @@ public function update_data()
3131
$config->set('max_filesize', 0);
3232
$config->set('imcger_imgupload_max_filesize', $max_filesize);
3333

34+
$img_max_width = $config['img_max_width'];
35+
$config->set('img_max_width', 0);
36+
$config->set('imcger_imgupload_max_width', $img_max_width);
37+
38+
$img_max_height = $config['img_max_height'];
39+
$config->set('img_max_height', 0);
40+
$config->set('imcger_imgupload_max_height', $img_max_height);
41+
3442
return array(
35-
array('config.add', array('imcger_imgupload_version', '0.0.1')),
43+
array('config.add', array('imcger_imgupload_version', '0.0.2')),
3644
);
3745
}
3846
}

0 commit comments

Comments
 (0)