Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] jpg: failed to decode #42

Open
pwypustek opened this issue Jan 1, 2025 · 0 comments
Open

[BUG] jpg: failed to decode #42

pwypustek opened this issue Jan 1, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@pwypustek
Copy link

Describe the bug
in function const image = await Image.decode(imageData);
error jpg: failed to decode

Error: jpg: failed to decode
at Module.decode (/test/[email protected]/utils/wasm/jpeg.js:41:24)
at Function.decode (/test/[email protected]/ImageScript.js:1047:41)
at createThumbnail (/test/photo.ts:594:31)
at eventLoopTick (/test/ore/01_core.js:175:7)
at async Object.main [as photo] (/test/photo.ts:229:19)
at async Promise.all (index 0)
at async handler (/home/user/.cache/deno/npm/registry.npmjs.org/graphql-http/1.22.0/lib/handler.mjs:319:22)
at async handleRequest (/test/[email protected]/mod.ts:63:28)
at async file:///test/main.ts:245:31
at async mapped (ext:deno_http/00_serve.ts:384:18) {stack: 'Error: jpg: failed to decode
at Module.de…ync mapped (ext:deno_http/00_serve.ts:384:18)', message: 'jpg: failed to decode'}

image file info:
JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, Exif Standard: [TIFF image data, big-endian, direntries=12, manufacturer=Apple, model=iPhone 11, orientation=upper-left, xresolution=174, yresolution=182, resolutionunit=2, software=16.4.1, datetime=2023:05:23 14:07:10, hostcomputer=iPhone 11], baseline, precision 8, 4032x3024, components 3

@pwypustek pwypustek added the bug Something isn't working label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant