@spark-apps/piclet 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 [Spark Games]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/Readme.md ADDED
@@ -0,0 +1,180 @@
1
+ [//]: # (Constants)
2
+ [privacy-link]: ./PRIVACY.md
3
+ [coffee-link]: https://buymeacoffee.com/spark88
4
+ [issues-link]: ../../issues
5
+ [fork-link]: ../../fork
6
+
7
+ <div align="center">
8
+
9
+ <img src="res/imgs/banana.png" width=100>
10
+
11
+ # PicLet
12
+
13
+ **Lightweight image tools for content creators • CLI, GUI, and Web**
14
+
15
+ [![npm version](https://img.shields.io/npm/v/@spark-apps/piclet?color=blue)](https://www.npmjs.com/package/@spark-apps/piclet)
16
+ [![GitHub Sponsors](https://img.shields.io/github/sponsors/muammar-yacoob?label=Sponsor&logo=github-sponsors&logoColor=white&color=pink)](https://github.com/sponsors/muammar-yacoob)
17
+ [![Buy Me Coffee](https://img.shields.io/badge/Buy%20Me-Coffee-green?logo=buy-me-a-coffee&logoColor=white)][coffee-link]
18
+ [![Report Bug](https://img.shields.io/badge/Report-Bug-red?logo=github&logoColor=white)][issues-link]
19
+
20
+ </div>
21
+
22
+ ---
23
+
24
+ ## 🌐 Try PicLet Online
25
+
26
+ **[piclet.app](https://piclet.app)** - Use all tools directly in your browser. No installation, 100% client-side processing, your images never leave your device.
27
+
28
+ ---
29
+
30
+ ## Tools & Features
31
+
32
+ <table>
33
+ <thead>
34
+ <tr>
35
+ <th width="80" align="center">Tool</th>
36
+ <th>Description</th>
37
+ <th>Formats</th>
38
+ <th>Available In</th>
39
+ </tr>
40
+ </thead>
41
+ <tbody>
42
+ <tr>
43
+ <td align="center"><img src="src/icons/makeicon.ico" width="48" alt="Make Icon"></td>
44
+ <td><strong>Make Icon</strong><br>Convert images to ICO with multiple resolutions (256, 128, 64, 48, 32, 16)</td>
45
+ <td>PNG</td>
46
+ <td>CLI, GUI, Web</td>
47
+ </tr>
48
+ <tr>
49
+ <td align="center"><img src="src/icons/removebg.ico" width="48" alt="Remove BG"></td>
50
+ <td><strong>Remove Background</strong><br>Remove solid backgrounds with configurable fuzz tolerance</td>
51
+ <td>PNG</td>
52
+ <td>CLI, GUI, Web</td>
53
+ </tr>
54
+ <tr>
55
+ <td align="center"><img src="src/icons/rescale.ico" width="48" alt="Scale"></td>
56
+ <td><strong>Scale Image</strong><br>Resize images with optional square padding</td>
57
+ <td>PNG, JPG, GIF, BMP</td>
58
+ <td>CLI, GUI, Web</td>
59
+ </tr>
60
+ <tr>
61
+ <td align="center"><img src="src/icons/iconpack.ico" width="48" alt="Icon Pack"></td>
62
+ <td><strong>Icon Pack</strong><br>Generate complete icon sets for Web, Android, and iOS</td>
63
+ <td>PNG, JPG</td>
64
+ <td>CLI, GUI, Web</td>
65
+ </tr>
66
+ <tr>
67
+ <td align="center"><img src="src/icons/storepack.ico" width="48" alt="Store Assets"></td>
68
+ <td><strong>Store Assets</strong><br>Generate graphics for Steam, itch.io, Unity Asset Store, and app stores</td>
69
+ <td>PNG, JPG</td>
70
+ <td>GUI, Web</td>
71
+ </tr>
72
+ </tbody>
73
+ </table>
74
+
75
+ ---
76
+
77
+ ## Get Started
78
+
79
+ ### 🌐 Web Version (No Installation)
80
+
81
+ Visit **[piclet.app](https://piclet.app)** - Works in any modern browser, 100% client-side processing.
82
+
83
+ ### 💻 Desktop Version (Windows)
84
+
85
+ Download and install via npm for CLI access and Windows Explorer integration:
86
+
87
+ ```bash
88
+ npm install -g @spark-apps/piclet
89
+ ```
90
+
91
+ **Requirements:**
92
+ - Windows with WSL (Windows Subsystem for Linux)
93
+ - ImageMagick in WSL: `sudo apt update && sudo apt install imagemagick`
94
+ - Node.js >= 18
95
+
96
+ ---
97
+
98
+ ## Desktop Usage
99
+
100
+ ### 🖱️ GUI Mode (Right-Click Integration)
101
+
102
+ Right-click any image file in Windows Explorer to access PicLet tools:
103
+
104
+ <div align="center">
105
+ <img src="res/imgs/menu.png" style="border: 1px solid #eee; border-radius: 4px; max-width: 500px;" alt="PicLet Context Menu">
106
+ </div>
107
+
108
+ <div align="center">
109
+ <img src="res/imgs/demo.png" alt="PicLet GUI" style="border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); max-width: 700px;">
110
+ <p><em>GUI with real-time preview and batch processing</em></p>
111
+ </div>
112
+
113
+ ### ⌨️ CLI Mode (Command Line)
114
+
115
+ Fast batch processing via terminal:
116
+
117
+ ```bash
118
+ # Convert PNG to ICO
119
+ piclet makeicon logo.png
120
+
121
+ # Remove background
122
+ piclet remove-bg photo.png
123
+
124
+ # Scale image
125
+ piclet scale image.jpg
126
+
127
+ # Generate icon pack for all platforms
128
+ piclet iconpack app-icon.png
129
+
130
+ # Open GUI with store assets preset
131
+ piclet storepack image.png
132
+ ```
133
+
134
+ <div align="center">
135
+ <img src="res/imgs/cli.jpg" alt="PicLet CLI" style="border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); max-width: 600px;">
136
+ <p><em>CLI for automation and batch operations</em></p>
137
+ </div>
138
+
139
+ ### Registry Management
140
+
141
+ ```bash
142
+ # Re-register context menu entries
143
+ piclet install
144
+
145
+ # Remove context menu entries
146
+ piclet uninstall
147
+
148
+ # Uninstall completely
149
+ npm uninstall -g @spark-apps/piclet
150
+ ```
151
+
152
+ ## Icon Pack Output
153
+
154
+ When you run `piclet iconpack`, it generates:
155
+
156
+ **Web** (8 files)
157
+ - `favicon.ico`, `favicon-16x16.png`, `favicon-32x32.png`, `favicon-48x48.png`
158
+ - `apple-touch-icon.png` (180px)
159
+ - `android-chrome-192x192.png`, `android-chrome-512x512.png`
160
+ - `mstile-150x150.png`
161
+
162
+ **Android** (6 files)
163
+ - `mipmap-mdpi` through `mipmap-xxxhdpi` directories
164
+ - `playstore-icon.png` (512px)
165
+
166
+ **iOS** (15 files)
167
+ - All `AppIcon` sizes including @2x/@3x variants
168
+ - `AppIcon-1024.png` for App Store
169
+
170
+ ## Support & Contributions
171
+
172
+ ⭐ Star the repo and I power up like Mario!<br>
173
+ ☕ Devs run on [coffee][coffee-link].<br>
174
+ 🤝 [Contributions][fork-link] are welcome.
175
+
176
+ ---
177
+
178
+ <div align="center">
179
+ <sub>Released under MIT License | <a href="./PRIVACY.md">Privacy Policy</a></sub>
180
+ </div>