pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
3.02k stars 80 forks source link

Some early photos could not be scaled #358

Open soliloquies opened 1 year ago

soliloquies commented 1 year ago

what happened

Some photos with a recent date can be opened and zoomed normally, while some photos with a longer date will have black borders on both sides when loaded and cannot be zoomed.

environment

nginx+php8.0-fpm+MariaDB 10.5.18

memories 4.10.0

root@debian:~# nginx -v
nginx version: nginx/1.18.0

root@debian:~# php -v
PHP 8.0.27 (cli) (built: Jan 13 2023 10:38:04) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.27, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.27, Copyright (c), by Zend Technologies

nextcloud log

{"reqId":"ont9KXF65AJaGTTfXPKg","level":0,"time":"January 20, 2023 05:24:33","remoteAddr":"10.0.0.13","user":"demo","app":"files_mindmap","method":"GET","url":"/apps/memories/api/image/info/7314","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","version":"25.0.3.2","data":{"app":"files_mindmap"}}
{"reqId":"z9W1YrRjZ4NhjxPAg8Ch","level":0,"time":"January 20, 2023 05:24:33","remoteAddr":"10.0.0.13","user":"demo","app":"files_mindmap","method":"GET","url":"/apps/memories/api/image/info/6854","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","version":"25.0.3.2","data":{"app":"files_mindmap"}}
{"reqId":"sTUpNvUHJcL6mwSHCCgU","level":0,"time":"January 20, 2023 05:24:33","remoteAddr":"10.0.0.13","user":"demo","app":"files_mindmap","method":"GET","url":"/apps/memories/api/image/info/6570","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","version":"25.0.3.2","data":{"app":"files_mindmap"}}
{"reqId":"ZnWQaj3vJa1n64ezUDmk","level":0,"time":"January 20, 2023 05:24:33","remoteAddr":"10.0.0.13","user":"demo","app":"files_mindmap","method":"GET","url":"/apps/memories/api/image/info/107940","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","version":"25.0.3.2","data":{"app":"files_mindmap"}}
{"reqId":"N1Fg69DznVrZJzKj4woO","level":0,"time":"January 20, 2023 05:24:33","remoteAddr":"10.0.0.13","user":"demo","app":"files_mindmap","method":"GET","url":"/apps/memories/api/image/info/6858","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","version":"25.0.3.2","data":{"app":"files_mindmap"}}
{"reqId":"iTFTNC3yG1dYEI2QORIA","level":0,"time":"January 20, 2023 05:24:33","remoteAddr":"10.0.0.13","user":"demo","app":"files_mindmap","method":"GET","url":"/apps/memories/api/image/preview/6570?c=1d6dc4535b48380706ec3c0823994d4c&x=3843&y=2161&a=1","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","version":"25.0.3.2","data":{"app":"files_mindmap"}}
{"reqId":"jEvQZWf90xafH9BwlRhw","level":0,"time":"January 20, 2023 05:24:33","remoteAddr":"10.0.0.13","user":"demo","app":"files_mindmap","method":"GET","url":"/apps/memories/api/image/preview/6854?c=f319aae754d0bb041eb7dd2b0006d52d&x=3843&y=2161&a=1","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","version":"25.0.3.2","data":{"app":"files_mindmap"}}
{"reqId":"OgPRP78zzmrNmrPg6lJq","level":0,"time":"January 20, 2023 05:24:33","remoteAddr":"10.0.0.13","user":"demo","app":"files_mindmap","method":"GET","url":"/apps/memories/api/image/preview/107940?c=da4c6419b6ecaac3320b6ee792726299&x=3843&y=2161&a=1","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","version":"25.0.3.2","data":{"app":"files_mindmap"}}
pulsejet commented 1 year ago

The issue likely is that photos smaller than viewport cannot be scaled.

soliloquies commented 1 year ago

today, I'm cleaning the AppData preview folder. if not generate all previews that zoomed normally. emm ......

soliloquies commented 1 year ago

);

meichthys commented 9 months ago

@soliloquies Are you still seeing this issue? If so, could you provide a sample photo that causes this?