apexify.js 5.1.0 → 5.1.1
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/CHANGELOG.md +23 -38
- package/README.md +5 -9
- package/lib/Canvas/utils/Custom/advancedLines.ts +387 -387
- package/lib/Canvas/utils/Custom/customLines.ts +206 -206
- package/lib/Canvas/utils/types.ts +983 -983
- package/package.json +198 -198
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### ✨ Added
|
|
11
11
|
|
|
12
|
+
##### New Video Methods
|
|
13
|
+
- **`createVideo()`**: New method to create canvas with video frame as background
|
|
14
|
+
- Extract frames at specific time or frame number
|
|
15
|
+
- Custom canvas dimensions or auto-use video dimensions
|
|
16
|
+
- Returns `CanvasResults` compatible with other ApexPainter methods
|
|
17
|
+
|
|
12
18
|
##### Comprehensive Video Processing Features (18 New Features!)
|
|
13
19
|
- **Video Effects/Filters** (`applyEffects`): Apply professional filters to entire videos
|
|
14
20
|
- Blur, brightness, contrast, saturation adjustments
|
|
@@ -123,7 +129,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
123
129
|
- **Timeout Handling**: Appropriate timeouts for different operation types
|
|
124
130
|
- **Buffer Management**: Optimized buffer sizes for different operations
|
|
125
131
|
|
|
126
|
-
|
|
132
|
+
##### Video Processing Enhancements
|
|
133
|
+
- **Better Path Resolution**: Relative video paths are now properly resolved
|
|
134
|
+
- Automatically resolves paths relative to `process.cwd()`
|
|
135
|
+
- Consistent with how `customBg` handles image paths
|
|
136
|
+
- Better error messages when video files are not found
|
|
137
|
+
|
|
138
|
+
- **Enhanced Error Handling**: More informative error messages
|
|
139
|
+
- Detailed FFmpeg installation instructions in error messages
|
|
140
|
+
- OS-specific installation guides (Windows, macOS, Linux)
|
|
141
|
+
- Clear error messages when frame extraction fails
|
|
142
|
+
- Validation for empty buffers and invalid dimensions
|
|
143
|
+
|
|
144
|
+
- **Improved Frame Loading**: Better compatibility with `loadImage`
|
|
145
|
+
- Fallback to file-based loading if buffer loading fails
|
|
146
|
+
- Automatic cleanup of temporary files
|
|
147
|
+
- Better handling of different pixel formats
|
|
148
|
+
|
|
127
149
|
|
|
128
150
|
### 🐛 Fixed
|
|
129
151
|
|
|
@@ -145,43 +167,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
145
167
|
- Force PNG format for `videoBg` to ensure compatibility with `loadImage`
|
|
146
168
|
- Proper pixel format handling for color accuracy
|
|
147
169
|
|
|
148
|
-
### ✨ Added
|
|
149
|
-
|
|
150
|
-
##### New Video Methods
|
|
151
|
-
- **`createVideo()`**: New method to create canvas with video frame as background
|
|
152
|
-
- Extract frames at specific time or frame number
|
|
153
|
-
- Custom canvas dimensions or auto-use video dimensions
|
|
154
|
-
- Returns `CanvasResults` compatible with other ApexPainter methods
|
|
155
|
-
|
|
156
|
-
- **`extractFrameByNumber()`**: Extract frames by frame number (1-based)
|
|
157
|
-
- Automatically converts frame number to time using video FPS
|
|
158
|
-
- More intuitive API for frame-based extraction
|
|
159
|
-
- Handles FPS detection and conversion automatically
|
|
160
|
-
|
|
161
|
-
- **`extractAllFrames()`**: Extract ALL frames from a video
|
|
162
|
-
- Extracts every frame from video as PNG/JPEG files
|
|
163
|
-
- Configurable output directory and file naming
|
|
164
|
-
- Optional time range (startTime/endTime) for partial extraction
|
|
165
|
-
- Returns array of frame file paths with metadata
|
|
166
|
-
|
|
167
|
-
### 🔧 Improved
|
|
168
|
-
|
|
169
|
-
##### Video Processing Enhancements
|
|
170
|
-
- **Better Path Resolution**: Relative video paths are now properly resolved
|
|
171
|
-
- Automatically resolves paths relative to `process.cwd()`
|
|
172
|
-
- Consistent with how `customBg` handles image paths
|
|
173
|
-
- Better error messages when video files are not found
|
|
174
|
-
|
|
175
|
-
- **Enhanced Error Handling**: More informative error messages
|
|
176
|
-
- Detailed FFmpeg installation instructions in error messages
|
|
177
|
-
- OS-specific installation guides (Windows, macOS, Linux)
|
|
178
|
-
- Clear error messages when frame extraction fails
|
|
179
|
-
- Validation for empty buffers and invalid dimensions
|
|
180
|
-
|
|
181
|
-
- **Improved Frame Loading**: Better compatibility with `loadImage`
|
|
182
|
-
- Fallback to file-based loading if buffer loading fails
|
|
183
|
-
- Automatic cleanup of temporary files
|
|
184
|
-
- Better handling of different pixel formats
|
|
185
170
|
|
|
186
171
|
---
|
|
187
172
|
|
package/README.md
CHANGED
|
@@ -1131,11 +1131,7 @@ Comprehensive video series covering:
|
|
|
1131
1131
|
- Advanced features and techniques
|
|
1132
1132
|
|
|
1133
1133
|
### 📚 **Documentation**
|
|
1134
|
-
- [Full API Reference](
|
|
1135
|
-
- [Examples Gallery](#examples)
|
|
1136
|
-
- [TypeScript Types](#typescript-support)
|
|
1137
|
-
- [Performance Guide](#performance)
|
|
1138
|
-
|
|
1134
|
+
- [Full API Reference](https://apexifyjs.vercel.app)
|
|
1139
1135
|
---
|
|
1140
1136
|
|
|
1141
1137
|
## 🤝 Contributing
|
|
@@ -1151,7 +1147,7 @@ We welcome contributions! Here's how you can help:
|
|
|
1151
1147
|
|
|
1152
1148
|
```bash
|
|
1153
1149
|
# Clone the repository
|
|
1154
|
-
git clone https://github.com/
|
|
1150
|
+
git clone https://github.com/EIAS79/Apexify.js.git
|
|
1155
1151
|
|
|
1156
1152
|
# Install dependencies
|
|
1157
1153
|
npm install
|
|
@@ -1172,12 +1168,12 @@ npm run build
|
|
|
1172
1168
|
### Join Our Discord Community
|
|
1173
1169
|
|
|
1174
1170
|
[](https://discord.gg/CS2NRSPyze)
|
|
1175
|
-
[](https://discord.gg/94qUZWhwFE)
|
|
1172
|
+
|
|
1177
1173
|
|
|
1178
1174
|
### Documentation & Resources
|
|
1179
1175
|
|
|
1180
|
-
[](
|
|
1176
|
+
[](https://apexifyjs.vercel.app)
|
|
1181
1177
|
[](https://discord.gg/mDyXV9hzXw)
|
|
1182
1178
|
|
|
1183
1179
|
</div>
|