Skip to content

[BUG] Too many auxiliary image references #84

@raupie

Description

@raupie

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

root@0d7753e52879:/gallery/upload/2025/03/31# convert -sampling-factor 4:2:0 -quality 85 -interlace JPEG -colorspace sRGB -auto-orient +repage -resize "2484x1863>" "/gallery/upload/2025/03/31/20250331180226-17cfd494.heic" "././upload/2025/03/31/pwg_representative/20250331180226-17cfd494.jpg"
convert: Invalid input: Unspecified: Too many auxiliary image references (2.0) `/gallery/upload/2025/03/31/20250331180226-17cfd494.heic' @ error/heic.c/IsHEIFSuccess/144.
convert: no images defined `././upload/2025/03/31/pwg_representative/20250331180226-17cfd494.jpg' @ error/convert.c/ConvertImageCommand/3362.
[2025-03-31 18:02:25][exec=AGMWCsyS9A]	[DEBUG]	ws_images_uploadAsync uploaded ./upload/buffer/17cfd4942f70d5543b85adbb7760a3d0-u3-001of005.chunk
[2025-03-31 18:02:25][exec=AGMWCsyS9A]	[DEBUG]	ws_images_uploadAsync all chunks are not uploaded yet, maybe on next chunk, exit for now
[2025-03-31 18:02:26][exec=KUs3jH0xeU]	[DEBUG]	ws_images_uploadAsync uploaded ./upload/buffer/17cfd4942f70d5543b85adbb7760a3d0-u3-003of005.chunk
[2025-03-31 18:02:26][exec=KUs3jH0xeU]	[DEBUG]	ws_images_uploadAsync all chunks are not uploaded yet, maybe on next chunk, exit for now
[2025-03-31 18:02:26][exec=6SuT2KMZsX]	[DEBUG]	ws_images_uploadAsync uploaded ./upload/buffer/17cfd4942f70d5543b85adbb7760a3d0-u3-002of005.chunk
[2025-03-31 18:02:26][exec=6SuT2KMZsX]	[DEBUG]	ws_images_uploadAsync all chunks are not uploaded yet, maybe on next chunk, exit for now
[2025-03-31 18:02:26][exec=kZV4UiFHFD]	[DEBUG]	ws_images_uploadAsync uploaded ./upload/buffer/17cfd4942f70d5543b85adbb7760a3d0-u3-004of005.chunk
[2025-03-31 18:02:26][exec=kZV4UiFHFD]	[DEBUG]	ws_images_uploadAsync all chunks are not uploaded yet, maybe on next chunk, exit for now
[2025-03-31 18:02:26][exec=R5rpO4pbmj]	[DEBUG]	ws_images_uploadAsync uploaded ./upload/buffer/17cfd4942f70d5543b85adbb7760a3d0-u3-005of005.chunk
[2025-03-31 18:02:26][exec=R5rpO4pbmj]	[DEBUG]	ws_images_uploadAsync 17cfd4942f70d5543b85adbb7760a3d0 5 chunks available, try now to get lock for merging
[2025-03-31 18:02:26][exec=R5rpO4pbmj]	[DEBUG]	ws_images_uploadAsync lock obtained to merge chunks
[2025-03-31 18:02:26][exec=R5rpO4pbmj]	[DEBUG]	ws_images_uploadAsync original_sum=17cfd4942f70d5543b85adbb7760a3d0, chunk 1/5 merged
[2025-03-31 18:02:26][exec=R5rpO4pbmj]	[DEBUG]	ws_images_uploadAsync original_sum=17cfd4942f70d5543b85adbb7760a3d0, chunk 2/5 merged
[2025-03-31 18:02:26][exec=R5rpO4pbmj]	[DEBUG]	ws_images_uploadAsync original_sum=17cfd4942f70d5543b85adbb7760a3d0, chunk 3/5 merged
[2025-03-31 18:02:26][exec=R5rpO4pbmj]	[DEBUG]	ws_images_uploadAsync original_sum=17cfd4942f70d5543b85adbb7760a3d0, chunk 4/5 merged
[2025-03-31 18:02:26][exec=R5rpO4pbmj]	[DEBUG]	ws_images_uploadAsync original_sum=17cfd4942f70d5543b85adbb7760a3d0, chunk 5/5 merged
[2025-03-31 18:02:26][exec=R5rpO4pbmj]	[DEBUG]	ws_images_uploadAsync merged file ./upload/buffer/17cfd4942f70d5543b85adbb7760a3d0-u3.merged saved
[2025-03-31 18:02:26][exec=R5rpO4pbmj]	[DEBUG]	ws_images_uploadAsync ./upload/buffer/17cfd4942f70d5543b85adbb7760a3d0-u3.merged MD5 checksum OK
[2025-03-31 18:02:26][exec=R5rpO4pbmj]	[INFO]	upload_file_pdf, $file_path = ././upload/2025/03/31/20250331180226-17cfd494.heic, $representative_ext = 
[2025-03-31 18:02:26][exec=R5rpO4pbmj]	[INFO]	upload_file_heic, $file_path = ././upload/2025/03/31/20250331180226-17cfd494.heic, $representative_ext = 
[2025-03-31 18:02:26][exec=R5rpO4pbmj]	[INFO]	upload_file_heic, exec = convert -sampling-factor 4:2:0 -quality 85 -interlace JPEG -colorspace sRGB -auto-orient +repage -resize "2484x1863>" "/gallery/upload/2025/03/31/20250331180226-17cfd494.heic" "././upload/2025/03/31/pwg_representative/20250331180226-17cfd494.jpg" 2>&1

Expected Behavior

The heic images on upload should be converting to jpg

Steps To Reproduce

v15.5.0 piwigo, latest docker-piwigo image

Try uploading a heic image from an iphone to piwigo through app or the web interface

Environment

- OS:
- How docker service was installed:

CPU architecture

x86-64

Docker creation

services:
  piwigo:
    image: lscr.io/linuxserver/piwigo
    #image: piwigo-beta:latest
    container_name: photos
    restart: unless-stopped
    environment:
      - PUID=10001
      - PGID=10001
      - TZ=America/New_York
    volumes:
      - /mnt/data/photos/config:/config
      - /mnt/data/photos/upload:/gallery/upload
      - /mnt/nfs/photos/Album:/gallery/galleries/Album
    ports:
      - 9003:443
    networks:
      - backend
      - home
networks:
  backend:
    driver: bridge
  home:
    external: true

Container logs

The issue isn't in docker logs. It's with the version of imagick and I believe the convert command with heic images.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions