Files
tehran_taj/apps
mahmoodandClaude Haiku 5.5 0b54752b6f fix(uploads): downscale huge-dimension files and give thumbnails a fallback
A flat 8000x8000 PNG can weigh 13 KB, so the byte-size shortcut skipped
compression and every thumbnail render had to decode 64 MP first — on a small
server that outlived nginx's timeout, leaving the card broken until the
variant finished while the original (/uploads) opened fine. Files over 2000 px
on their long side are now converted even when they are small on disk.

ant-design-vue paints the upload tile as <img src=thumbUrl alt=name> with no
error handling, so any failed resize showed the grey box with just the file
name. The tile now falls back to the stored original.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-26 14:16:38 +03:30
..
2026-09-18 17:16:36 +03:30