Update to 2.5.3 (#78)

* Update to 2.5.3

- add `exists_in_package` script function, which take a string argument of the form
"/package-name.package-extension/file-name.file-extension" and return true if the file can be loaded by MSE.
- add 175% export zoom option

* update watermark handling
* collapse card_watermark_1 etc into custom_watermark_link(#)
* added verify_watermark_image, a script that runs in custom watermark fields
* if the field is a potentially valid link, it will run exists_in_package, width_of, and length_of and caches their info in the field
* if the image is too big, it displays it normally instead of erroring

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
This commit is contained in:
GenevensiS
2024-09-26 22:37:23 +02:00
committed by GitHub
parent 2b8aa26f9f
commit fb3e5092a6
14 changed files with 143 additions and 87 deletions

View File

@@ -318,42 +318,52 @@ set field:
type: text
name: custom watermark 1
description: Set this image in magic-watermarks.mse-include as Custom Watermark 1. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 2
description: Set this image in magic-watermarks.mse-include as Custom Watermark 2. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 3
description: Set this image in magic-watermarks.mse-include as Custom Watermark 3. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 4
description: Set this image in magic-watermarks.mse-include as Custom Watermark 4. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 5
description: Set this image in magic-watermarks.mse-include as Custom Watermark 5. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 6
description: Set this image in magic-watermarks.mse-include as Custom Watermark 6. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 7
description: Set this image in magic-watermarks.mse-include as Custom Watermark 7. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 8
description: Set this image in magic-watermarks.mse-include as Custom Watermark 8. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 9
description: Set this image in magic-watermarks.mse-include as Custom Watermark 9. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 10
description: Set this image in magic-watermarks.mse-include as Custom Watermark 10. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: choice
name: blend with colors