Summary: | PNM images are not displayed by default | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Roberto Alsina <ralsina> |
Component: | Plugin-DImg-QImage | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | RedHat Enterprise Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 7.5.0 |
Description
Roberto Alsina
2004-12-07 16:43:14 UTC
added pnm to default extensions. we do extension based mimetype checks because we also support raw files from different cameras and there are plenty of raw file formats out there which are propertiary and there doesn't really exist a proper mimetype for them. even the file extensions vary wildly. so the only solution is to use extension based checks, which user can modify. the pnm files (in your case) come from libgphoto2, we really don't know all the different extensions for the files which will downloaded from the camera. we just add them, whenever somebody requests us to do so. i guess, we could be smart about it and do a check for each file which was downloaded and add extensions for it to the default extensions list (if not present already). CVS commit by pahlibar: * when downloading files from the camera, check for the file extension of each file and added it to the image mimetype list if not found. refresh the view appropriately. * minor code cleanup BUG: 94618 M +20 -15 digikam/digikamapp.cpp 1.79 M +0 -2 digikam/digikamapp.h 1.29 M +20 -0 utilities/cameragui/cameraui.cpp 1.34 M +3 -0 utilities/cameragui/cameraui.h 1.18 M +0 -1 utilities/setup/setup.cpp 1.28 |