Skip to content

jwillinghalpern/fm_watermark_icon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FM Watermark Icon Generator

add a watermark to your FileMaker Pro icons to quickly differentiate filemaker versions. For example, you can add a "20" watermark to your FileMaker Pro 20 app and a "21" watermark to your FileMaker Pro 21 app.

icons

Installation

  1. Download or clone this repository to your local machine.

    git clone https://github.com/jwillinghalpern/fm_watermark_icon.git
    cd fm_watermark_icon
  2. Install pillow and numpy

    python3 -m pip install --upgrade pip && python3 -m pip install pillow numpy
  3. Install fileicon using one of these approaches

    brew install fileicon

    or

    npm install fileicon -g
  4. Make the script executable

    chmod +x fm_watermark_icon.py
  5. (Optional but recommended) Add the script to your PATH for easy access

    Create a symlink (preferred if you want to keep the script in its current location)

    Note: When using symlinks, the file must remain in the original directory:

    sudo ln -s "$(pwd)/fm_watermark_icon.py" /usr/local/bin/fm_watermark_icon

    Or copy the script to a directory already in your PATH. If you choose this method, you may need to update the copied script in the future when changes are made in this repository

    sudo cp fm_watermark_icon.py /usr/local/bin/fm_watermark_icon

Usage Examples

Basic watermarking with automatic app icon update

Add a "22" watermark and immediately update the app icon:

fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 22

Or using the short form:

fm_watermark_icon -a '/Applications/FileMaker Pro.app' -t 22

Save watermarked icon to a file without updating the app

Add a "23" watermark and save to a file instead of updating the app:

fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 23 --output new_icon.icns

Color tinting options

Change the colored parts of the icon to orange while adding a watermark:

fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 22 --color "#FF8A00"

Just tint the icon without adding text watermark:

fm_watermark_icon --app '/Applications/FileMaker Pro.app' --color "#00A7FF"

Background color options

Change white/light background regions to a custom color:

fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 22 --bg-color "#F0F0F0"

Combine colored region tinting with background color change:

fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 22 --color "#FF8A00" --bg-color "#E8E8E8"

Custom watermark text color

Use red text for the watermark:

fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 22 --text-color "#FF0000"

White text on a dark background:

fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 22 --text-color "#FFFFFF" --bg-color "#000000"

Legacy format (still supported)

The original positional argument format still works:

fm_watermark_icon '/Applications/FileMaker Pro.app' 22

If you use the --output approach, you can manually update the app icon for FileMaker by right-clicking on the FileMaker Pro app in Finder and selecting "Get Info". Then drag or paste the new icon over the old one in the top left corner of the Info window.

get info

Notes

This only works on macos.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages