Difference between revisions of "Extensions:90 Percent Watermark"

From Lorekeeper Wiki
Jump to navigation Jump to search
m
Tag: 2017 source edit
m (Removed →‎Images: section, this is automation behind the scenes.)
Tag: 2017 source edit
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Extensioninfobox|title=90 Percent Watermark|desc=Scales your watermark up or down to 90 Percent of the masterlist image!|auth=[[User:Speedy|Speedy]]|status=stable|github={{Github|user=SpeedyD|branch=extension/90-percent-watermark}}|LKVer=2.1.0|migration=no|package=no}}
+
{{Extensioninfobox|title=90 Percent Watermark \ Watermark Resizing|desc=Scales your watermark up or down to 90 Percent of the masterlist image!|auth=[[User:Speedy|Speedy]]|status=stable|github={{Github|user=SpeedyD|branch=extension/90-percent-watermark}}|LKVer=2.1.0|migration=no|package=no|dev300=yes}}
  
{| style="margin: 4px auto; width: 80%; border: 1px solid #dc3545; background: #f52237;"
+
{| style="margin: 4px auto; width: 80%; border: 1px solid #9ADC38; background: #A1F524;"
 
|-
 
|-
| '''<u>DO NOT USE IF YOU ARE ON VERSION v3.0.0 OR THE LATEST DEV BRANCH</u>'''
+
| '''<u>THIS EXTENSION IS PART OF v3.0.0</u>'''
 
|-
 
|-
| This extension has been merged into the develop branch (aka the future v3.0.0 branch) as [https://github.com/corowne/lorekeeper/commit/c9c33b2ff475a84a159f64a64fc25e9abc6ef978 "Watermark Resizing"].
+
| This extension has been merged into the v3.0.0 branch as [https://github.com/corowne/lorekeeper/commit/c9c33b2ff475a84a159f64a64fc25e9abc6ef978 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.
 
 
|}
 
|}
  
 +
 +
{| style="margin: 4px auto; width: 80%; border: 1px solid #940a0a; background: #C8D945;"
 +
|-
 +
| '''<u>This extension re-released for v2.1.x!</u>'''
 +
|-
 +
| The GitHub link refers to a version EXCLUSIVELY for v2.1.x- if you're on v3.0.0 or above, '''DO NOT DOWNLOAD'''!!
 +
|}
 +
 +
Automatically resizes the watermark to 90% of the masterlist and thumbnail image size!
 +
 +
(Percentage can be edited, see Configuration below.)
  
 
== 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:
<code>'watermark_resizing'      => 0,</code>
+
<syntaxhighlight lang="html">'watermark_resizing'      => 0,</syntaxhighlight>
 +
 
 
(You also need to change the <code>'watermark_masterlist_images'</code> setting to be enabled.)
 
(You also need to change the <code>'watermark_masterlist_images'</code> 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.
<code>'watermark_percent'        => 0.9,</code>
+
<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:
<code>'watermark_resizing_thumb' => 0,</code>
+
<syntaxhighlight lang="html">'watermark_resizing_thumb' => 0,</syntaxhighlight>
 +
 
 
(You also need to change the <code>'watermark_masterlist_thumbnails'</code> setting to be enabled.)
 
(You also need to change the <code>'watermark_masterlist_thumbnails'</code> 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.
+
Create a new thread in the #general-help channel of the Discord!
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.
+
You can always try tagging me (see my [[User:Speedy|user page]]), as I'm semi-active on the server, but a new thread is your best bet.
 +
 
 +
== Version History ==
 +
* '''1.0.0:''' Initial creation.
 +
* '''1.1.0:''' Added the options to toggle watermark resizing, to implement your own scale and to toggle (the newly added) thumbnail watermark resizing.
 +
 
 +
== See Also ==
 +
This extension requires [[Extensions:Watermarking]], which is part of the 2.0.0 update. (Or formerly known as the 'modified-main' branch.)
  
== Images ==
+
If you're on a version of LK older than 2.0.0, it's highly suggested to update.
<!-- Note to self: add image sometime soon -->
+
* [[Updating:_to_2.0.0]]
 +
* [[Updating:_to_3.0.0]]

Latest revision as of 05:50, 2 May 2024

90 Percent Watermark \ Watermark Resizing
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
Is part of LK v3.0.0's release






THIS EXTENSION IS PART OF v3.0.0
This extension has been merged into the v3.0.0 branch as Watermark Resizing.


This extension re-released for v2.1.x!
The GitHub link refers to a version EXCLUSIVELY for v2.1.x- if you're on v3.0.0 or above, DO NOT DOWNLOAD!!

Automatically resizes the watermark to 90% of the masterlist and thumbnail image size!

(Percentage can be edited, see Configuration below.)

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

Create a new thread in the #general-help channel of the Discord!

You can always try tagging me (see my user page), as I'm semi-active on the server, but a new thread is your best bet.

Version History

  • 1.0.0: Initial creation.
  • 1.1.0: Added the options to toggle watermark resizing, to implement your own scale and to toggle (the newly added) thumbnail watermark resizing.

See Also

This extension requires Extensions:Watermarking, which is part of the 2.0.0 update. (Or formerly known as the 'modified-main' branch.)

If you're on a version of LK older than 2.0.0, it's highly suggested to update.