pigallery2: PNGs seem to be broken for me

Hi, I’m loving PiGallery 2, but for some reason it seems on my install it can’t read PNGs (different browser makes no difference, tested with FF and Chromium, the PNGs in question display fine when dropped directly into the browser or opened with other software):

grafik

I’m running on Docker (x86) bpatrik/pigallery2:latest-alpine-tag, the log says:

[Error: Input file contains unsupported image format]
1/18/2022, 2:50:46 PM[ERROR][FileJob] Error during processing file:/app/data/images/[path]/[filename].png, Error: Input file contains unsupported image format

or sometimes:

1/18/2022, 5:22:17 PM[WARN_] Handled error:

ErrorDTO {
  code: 8,
  message: 'Error during generating thumbnail: /app/data/images/[path]/[filename].png',
  details: 'Error: Input file contains unsupported image format',
  request: { method: '', url: '' },
  detailsStr: 'Error: Input file contains unsupported image format'
}

Any idea what might be the issue, what I could do to further troubleshoot this? Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 28 (16 by maintainers)

Most upvoted comments

Command ‘cpuinfo’ not found, did you mean:

command ‘cpu-info’ from deb cpuinfo (0.0~git20190201.d5e37ad-2) command ‘cpcinfo’ from deb python3-zhmcclient (0.22.0-0ubuntu1)

Try: sudo apt install <deb name>

by maybe this lscpu | grep --color "sse"

image

no sse4_2

You can try removing the restart: Always from the compose file. So it won’t keep restarting when the app dies.

– Sorry for being brief, sent from my phone.

Dedy Martadinata S @.***> ezt írta (időpont: 2022. márc. 13., V 13:09):

on v1.9.3 also failed to start? let see if you can start it manually.

version: ‘3’ services: pigallery2: image: bpatrik/pigallery2:latest command: bash stdin_open: true tty: true container_name: pigallery2 environment: - NODE_ENV=debug volumes: - “./pigallery2/config:/app/data/config” # CHANGE ME - “db-data:/app/data/db” - “./pigallery2/images:/app/data/images:ro” # CHANGE ME, ‘:ro’ mean read-only - “./pigallery2/tmp:/app/data/tmp” # CHANGE ME ports: - 80:80 restart: always

volumes: db-data:

The go into container console, and run node ./src/backend/index --expose-gc –config-path=/app/data/config/config.json

— Reply to this email directly, view it on GitHub https://github.com/bpatrik/pigallery2/issues/412#issuecomment-1066087988, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZKA5W36VAA5YW46OZVQQTU7XLH5ANCNFSM5MHYZSNQ . You are receiving this because you commented.Message ID: @.***>

I have the same issue but only on bpatrik/pigallery2:1.9.0-alpine image

When I switch back to bpatrik/pigallery2:1.8.2-alpine or to bpatrik/pigallery2:1.8.5-alpine the PNG files are working correctly

The PNG issue is NOT on bpatrik/pigallery2:latest-debian-buster image

Nightly is not working on my host otherwise I would try that one.

The host is No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.4 LTS Release: 20.04 Codename: focal