-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
PNGs aren't recognized as photos #208
Comments
Hey! :) Can you give a little background on why do you have png photos? Thanks for your report and your help! 🚀 |
All of my PNGs are from screenshots on my phone and desktop. |
Ah well. This app aimed to be photos oriented. |
Originally posted by @dragon988 in #223 (comment) So I find this interesting, thanks everyone here for the help understanding your use of photos :) For example, I have backups of websites hosted or stuff like that. What solutions do you have in mind? |
Your use case is phone cameras which save as jpeg with raw images. But regular cameras shoot images in a variety of formats from raw to tiff and png/jpeg. Most people who shell out the money for a dedicated camera will not use jpeg. Can't speak for everyone though. Just my two cents! Have a good day. |
Exactly. We need to keep in mind nextcloud users are usually not professional photographer :) |
My particular use case is outside of the norm yes. Not even arguing that point :) But going back to actual cameras. That's not a niche use case.. people do take pictures with regular cameras. It's not even a professional setting. Lots of people (myself included) use/have used dedicated cameras in the past. Even if they opted to use jpeg from now on it doesn't change that their previous photographs are unviewable without converting them and causing quality loss. Anyway, it's not crucial for this to be fixed on my end. I just wasn't sure if you were aware of the issue. |
That is a valid point! Thanks :)
Well, I think it is important to listen to different uses case ;) |
Maybe support those files types with a minimum file size? That would exclude unwanted png/jpeg pretty fast ? |
In principle, I have the same problem with png files, but I really admit that they can also be used as photos, and solve it with the Android Gallery uses that and it works well.. Maybe the improvement should be just make it easier |
Yes, 141 is planned as well :) |
Can the inclusion of specific file types in photos be optional? |
@willyouvba this is pretty similar yes! :) |
HEIC should for sure be supported, as they are a specifically "photo" file type. :) PNGs still not sure … as @skjnldsv said this is a "Photos" app – for png graphic files there’s the Files grid view. We don’t want the view to be cluttered with irrelevant images and also not require people to use iOS Photos for example offers to "Save Screenshot to Photos". A last resort for us could be a bottom left settings switch saying "Show non-photo image files", disabled by default. But it’s really not a priority for now. |
To add my two cents to this: I used to edit some of my photos with PS or GIMP and, mostly out of habit, I saved the result as PNG, so quite a lot of my photos are PNG. Out of the same habit I changed Open Camera on my Android, to save the images as PNG. So I personally would prefer to be PNG a supported format. As for the part of cluttering with irrelevant images and sprites: As soon as #141 is done this problem should "vanish in a puff of logic" [1]. Again, this is only a "nice-to-have" (maybe a "really-nice-to-have") but nothing that would break anything as the NC viewer still shows PNG without a problem. |
This would work fine indeed, this is just a matter of default user experience :) |
I'm scanning old photos rather to PNG than to JPEG so I got a bunch of pictures thar are png.... |
I understand that the photos app tries to be smart and use all photos in the whole cloud. Considering that as a preset, inclusion of other picture formats such as PNG might not be a good idea. However, at least in my cases (my company NC, my family NC, my club NCs) we have DEDICATED FOLDERS for pictures and in all cases, I want to see THEM only, and ALL types of images (including scans), this is PNG, TIF, BMP, etc. Apart from that, if the Photos app would be here for pictures from digicams, then JPG is by far not the only image type to display, there would be different raw typs, HEIC, etc. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
skjnldsv, I think "supported by all web browsers" "lossless data compression" make a usecase by itself: anyone doing a photo blog, for instance, will be interested by this two points. Your first comment on this thread was "Can you give a little background on why do you have png photos?". I think it was quite necessary to voice the fact that PNG for photos is not some unheard of strange thing, many people use it (granted: people that tends to edit, modify, etc), some very often, and the lack of comments on this thread is probably not representative. So the question is not whether there is incentive to "help" one individual posting here but whether a Photos app on something with such a general scope as nextcloud can actually arbitrarily ignore files based on their format. Off topicMoreover, the choice to switch from Gallery to Photos was already very questionable the way it appeared (no one seriously expect a switch from one stable version to another to get such feature regression). The fact that the name is now called "Photos" does not change the fact that some users were actually using *galleries*, which means images in general and not necessarily photos.Update: ok forget it. I've just noticed you marked "off-topic" my comment to #320, because I felt it was related to this whole topic. Turns out #320 was exactly related to this topic. |
This comment has been minimized.
This comment has been minimized.
For the record, in Gallery (https://github.com/nextcloud/gallery), supporting more media types was a matter of having in config: 'enabledPreviewProviders' => |
Steps to reproduce
Upload a photo that has the .png filename extension
Expected behaviour
The .png is recognized as a photo by the Photos app
Actual behaviour
The .png is not recognized as a photo by the Photos app, and therefore doesn't show up in
Your photos
, and it's parent folder isn't listed inYour albums
.Server configuration detail
Operating system: Linux 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64
Webserver: nginx/1.16.1 (fpm-fcgi)
Database: mysql 10.4.12
PHP version:
7.3.14
Modules loaded: Core, date, libxml, pcre, zlib, filter, hash, readline, Reflection, SPL, session, cgi-fcgi, bz2, ctype, curl, dom, fileinfo, ftp, gd, gmp, iconv, intl, json, ldap, mbstring, openssl, pcntl, PDO, pgsql, posix, standard, SimpleXML, smbclient, sodium, sqlite3, xml, xmlwriter, zip, exif, imap, mysqlnd, pdo_pgsql, pdo_sqlite, Phar, xmlreader, pdo_mysql, apcu, igbinary, redis, memcached, imagick, mcrypt, libsmbclient, Zend OPcache
Nextcloud version: 18.0.1 - 18.0.1.3
Updated from an older Nextcloud/ownCloud or fresh install: Older version of Nextcloud
Where did you install Nextcloud from: LinuxServer Docker image
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: Local
Are you using encryption: true
Are you using an external user-backend, if yes which one: No
Client configuration
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Operating system: ArchLinux
The text was updated successfully, but these errors were encountered: