[MZ] Phileas's Picture Outline (Clear picture outlines)

Plugin name: Phileas's Picture Outline

Author: Phileas

Version: 1.2.1 for MZ

Release date:
1.0.0 - 2024.May.04
1.0.1 - 2024.May.05
1.1.1 - 2024.May.08
1.2.0 - 2024.December.23
1.2.1 - 2024.December.24

Plugin description:
Displays a smooth outline around the pictures.
You can adjust the thickness and color of the outline.
See the plugin commands.

Plugin commands:
  • Set picture outline
  • Erase picture outline
  • Set several outlines
  • Erase several outlines
  • Erase all outlines
  • Set faces outline
  • Erase faces outline
How it looks like:
2024-05-05_01-39-20.png


2024-05-08_22-01-17.png


2024-05-08_22-01-30.png


Code

License
This plugin is released under MIT license.
This means that you can freely use the plugin in non-commercial and commercial games and even edit it.
But be sure to include me in the credits!

Compatibility:
If there are any problems, write to me.
1.0.1
Fixed PIXI compatibility, now it should work for everyone without additional libraries.
can you make the same plugin but with face images?
1.1.0
  • Now you can add a face outline.
  • The filter data is saved with the game and restored when the save is loaded.
1.1.1
Prettier faces

2024-05-08_22-01-17.png

2024-05-08_22-01-30.png


I also struggled with different options to get rid of artifacts from sprites of complex shapes. It hasn't worked out yet, I don't want to waste any more time on it. Write if it is critical for your usage scenario.
This would be great for around events on the map as well. Using comments in the event pages
This script is very useful, bit hard to use since I can't use hex color code from photoshop directly.
It will be perfect, If I can use that.
1.1.2
Added support for different color code formats:
  • 0xffffff
  • #ffffff
  • ffffff
Now you can simply copy the code from Photoshop or another editor without adding "0x" to the beginning.
1.2.0

When installing a filter on an picture, you can choose whether to bake its sprite or not.
This feature is disabled by default.
When baking, the picture together in the outline is rendered into a single bitmap, which replaces the original one.
The difference can be noticed when changing the opacity of the image:

2024-12-24_22-34-14.png


2024-12-24_22-35-01.png


UPD: 1.2.1
Added the ability to make an internal outline using a new option in the plugin commands.

Original thread: https://forums.rpgmakerweb.com/threads/mz-phileass-picture-outline-clear-picture-outlines.168355/