tokimeki-image-editor 0.4.5 → 0.4.6

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.
@@ -351,7 +351,7 @@ export async function exportImage(state) {
351
351
  if (!state.imageData.original)
352
352
  return null;
353
353
  const exportCanvas = await applyTransformWithWebGPU(state.imageData.original, state.transform, state.adjustments, state.cropArea, state.blurAreas, state.stampAreas, state.annotations);
354
- const format = state.exportOptions.format === 'jpeg' ? 'image/jpeg' : 'image/png';
354
+ const format = state.exportOptions.format === 'png' ? 'image/png' : 'image/jpeg';
355
355
  // Single async encode (toBlob) — avoids synchronous toDataURL blocking the main thread
356
356
  const blob = await new Promise((resolve) => {
357
357
  exportCanvas.toBlob(b => resolve(b), format, state.exportOptions.quality);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokimeki-image-editor",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "A image editor for svelte.",
5
5
  "type": "module",
6
6
  "license": "MIT",