Difference between revisions of "Extensions:90 Percent Watermark"
m (Okay, seriously, also getting fed up with how source is loaded..) Tag: 2017 source edit |
m (Wiki editing is not my forte.) Tag: 2017 source edit |
||
Line 13: | Line 13: | ||
== Installation == | == Installation == | ||
Pull the extension branch and push to your site. That's it! | Pull the extension branch and push to your site. That's it! | ||
+ | |||
Don't forget to run <code>php artisan update-extension-tracker</code> and <code>php artisan optimize</code>! | Don't forget to run <code>php artisan update-extension-tracker</code> and <code>php artisan optimize</code>! | ||
== Configuration == | == Configuration == | ||
As per the new update, you will need to head into <code>config/lorekeeper/settings.php</code>. | As per the new update, you will need to head into <code>config/lorekeeper/settings.php</code>. | ||
+ | |||
You will find options under the "Watermark Resizing (90 Percent Watermark)" header. | You will find options under the "Watermark Resizing (90 Percent Watermark)" header. | ||
+ | |||
By default, the extension is turned OFF. | By default, the extension is turned OFF. | ||
+ | |||
Change this setting to 1 to enable it: | Change this setting to 1 to enable it: | ||
− | < | + | <syntaxhighlight lang="html">'watermark_resizing' => 0,</syntaxhighlight> |
− | (You also need to change the < | + | |
+ | (You also need to change the | ||
+ | <syntaxhighlight lang="html">'watermark_masterlist_images'</syntaxhighlight> | ||
+ | setting to be enabled.) | ||
+ | |||
The following option will set the scale. | The following option will set the scale. | ||
+ | |||
By default, it's 0.9, or 90 percent, as per extension title. | By default, it's 0.9, or 90 percent, as per extension title. | ||
− | < | + | <syntaxhighlight lang="html">'watermark_percent' => 0.9,</syntaxhighlight> |
+ | |||
By default, the thumbnail watermark resizing is also turned OFF. | By default, the thumbnail watermark resizing is also turned OFF. | ||
+ | |||
Changing this setting to 1 will enable it: | Changing this setting to 1 will enable it: | ||
− | < | + | <syntaxhighlight lang="html">'watermark_resizing_thumb' => 0,</syntaxhighlight> |
− | (You also need to change the < | + | |
+ | (You also need to change the | ||
+ | <syntaxhighlight lang="html">'watermark_masterlist_thumbnails'</syntaxhighlight> | ||
+ | setting to be enabled.) | ||
== Usage == | == Usage == | ||
If all settings above are enabled, watermarking is pretty much automated! | If all settings above are enabled, watermarking is pretty much automated! | ||
+ | |||
Be sure to run <code>php artisan optimize</code> after each change. | Be sure to run <code>php artisan optimize</code> after each change. | ||
+ | |||
All you need to do is upload images | All you need to do is upload images | ||
== Troubleshooting == | == Troubleshooting == | ||
I'm Speedy#4060 on Discord, but please do not contact me directly. | I'm Speedy#4060 on Discord, but please do not contact me directly. | ||
+ | |||
Instead, please tag me in the Lorekeeper server if you need my help. | Instead, please tag me in the Lorekeeper server if you need my help. | ||
+ | |||
I am not a regular there, so asking something without a tag might not get a response. | I am not a regular there, so asking something without a tag might not get a response. | ||
== Images == | == Images == | ||
<!-- Note to self: add image sometime soon --> | <!-- Note to self: add image sometime soon --> |
Revision as of 14:55, 17 January 2023
Description | Scales your watermark up or down to 90 Percent of the masterlist image! |
---|---|
Author(s) | Speedy |
Status | stable |
Github | extension/90-percent-watermark |
LK Version | 2.1.0 |
DO NOT USE IF YOU ARE ON VERSION v3.0.0 OR THE LATEST DEV BRANCH |
This extension has been merged into the develop branch (aka the future v3.0.0 branch) as "Watermark Resizing". |
Do not download if you are already on the develop branch, or if you're reading this from the future where Lorekeeper is already on v3.0.0. |
Installation
Pull the extension branch and push to your site. That's it!
Don't forget to run php artisan update-extension-tracker
and php artisan optimize
!
Configuration
As per the new update, you will need to head into config/lorekeeper/settings.php
.
You will find options under the "Watermark Resizing (90 Percent Watermark)" header.
By default, the extension is turned OFF.
Change this setting to 1 to enable it:
'watermark_resizing' => 0,
(You also need to change the
'watermark_masterlist_images'
setting to be enabled.)
The following option will set the scale.
By default, it's 0.9, or 90 percent, as per extension title.
'watermark_percent' => 0.9,
By default, the thumbnail watermark resizing is also turned OFF.
Changing this setting to 1 will enable it:
'watermark_resizing_thumb' => 0,
(You also need to change the
'watermark_masterlist_thumbnails'
setting to be enabled.)
Usage
If all settings above are enabled, watermarking is pretty much automated!
Be sure to run php artisan optimize
after each change.
All you need to do is upload images
Troubleshooting
I'm Speedy#4060 on Discord, but please do not contact me directly.
Instead, please tag me in the Lorekeeper server if you need my help.
I am not a regular there, so asking something without a tag might not get a response.