Giter Club home page Giter Club logo

camerarawpreviews's Introduction

Camera RAW Previews

Github All Releases paypal

A Nextcloud app that extracts embedded previews for camera RAW images like .CR2, .CRW, .DNG, .MRW, .NEF, .NRW, .RW2, .SRW, .SRW, etc.

This app also gives you preview of Adobe Indesign files (.INDD) photos.

Requirements

  • Probably memory_limit quite high.
  • imagick or gd module. If imagick is available, it will use that for performance.
  • For files with a TIFF preview (at least some DNG files), imagick is required

Installation

Install in Nextcloud App store. https://apps.nextcloud.com/apps/camerarawpreviews

Install in ownCloud Marketplace (older version that is not supported anymore, due to too much difference between owncloud and nextcloud now) https://marketplace.owncloud.com/apps/camerarawpreviews

Building locally

  • Run "make"
  • Place this app in ./apps/

Information about the perl binary

Troubleshooting

  • If you get no preview, make sure your raw files has an embedded preview. If it looks like this, it does not have an embedded preview:
$ exiftool -json -preview:all rawfile.dng
[{
 "SourceFile": "rawfile.dng"
}]

camerarawpreviews's People

Contributors

ariselseng avatar d--j avatar dependabot[bot] avatar hasherdk avatar steiny2k avatar whisprin avatar yellowtech avatar yukihiratype2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

camerarawpreviews's Issues

Raw Preview no longer working @ Nextcloud 17.0.1

After upgrading Nextcloud from 17.0.0 to 17.0.1 the camerarawpreviews app @ version 0.7.2 is no longer working and is failing with following exception:

[remote] Error: ArgumentCountError: Too few arguments to function OCA\CameraRawPreviews\RawPreviewBase::__construct(), 0 passed in /var/www/nc/apps/camerarawpreviews/appinfo/app.php on line 42 and exactly 2 expected at <<closure>>

 0. /var/www/nc/apps/camerarawpreviews/appinfo/app.php line 42
    OCA\CameraRawPreviews\RawPreviewBase->__construct()
 1. /var/www/nc/lib/private/Preview/GeneratorHelper.php line 77
    OC_App::{closure}("*** sensitive parameters replaced ***")
 2. /var/www/nc/lib/private/PreviewManager.php line 264
    OC\Preview\GeneratorHelper->getProvider(Closure {})
 3. /var/www/nc/apps/dav/lib/Connector/Sabre/FilesPlugin.php line 356
    OC\PreviewManager->isAvailable(OC\Files\FileInfo {})
 4. /var/www/nc/3rdparty/sabre/dav/lib/DAV/PropFind.php line 98
    OCA\DAV\Connector\Sabre\FilesPlugin->OCA\DAV\Connector\Sabre\{closure}("*** sensitive parameters replaced ***")
 5. /var/www/nc/apps/dav/lib/Connector/Sabre/FilesPlugin.php line 357
    Sabre\DAV\PropFind->handle("{http://nextcloud.org/ns}has-preview", Closure {})
 6. <<closure>>
    OCA\DAV\Connector\Sabre\FilesPlugin->handleGetProperties(Sabre\DAV\PropFind {}, OCA\DAV\Connector\Sabre\File {})
 7. /var/www/nc/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
    undefinedundefinedcall_user_func_array([OCA\DAV\Connect ... "], [Sabre\DAV\PropF ... }])
 8. /var/www/nc/3rdparty/sabre/dav/lib/DAV/Server.php line 1059
    Sabre\Event\EventEmitter->emit("propFind", [Sabre\DAV\PropF ... }])
 9. /var/www/nc/3rdparty/sabre/dav/lib/DAV/Server.php line 981
    Sabre\DAV\Server->getPropertiesByNode(Sabre\DAV\PropFind {}, OCA\DAV\Connector\Sabre\File {})
10. /var/www/nc/3rdparty/sabre/dav/lib/DAV/Server.php line 1666
    Sabre\DAV\Server->getPropertiesIteratorForPath("files/xxx/Pict ... W", ["{DAV:}getlastm ... "], 1)
11. /var/www/nc/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 355
    Sabre\DAV\Server->generateMultiStatus(Generator {}, false)
12. <<closure>>
    Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
13. /var/www/nc/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
    undefinedundefinedcall_user_func_array([Sabre\DAV\CorePlugin {},"httpPropFind"], [Sabre\HTTP\Requ ... }])
14. /var/www/nc/3rdparty/sabre/dav/lib/DAV/Server.php line 479
    Sabre\Event\EventEmitter->emit("method:PROPFIND", [Sabre\HTTP\Requ ... }])
15. /var/www/nc/3rdparty/sabre/dav/lib/DAV/Server.php line 254
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
16. /var/www/nc/apps/dav/lib/Server.php line 317
    Sabre\DAV\Server->exec()
17. /var/www/nc/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
18. /var/www/nc/remote.php line 163
    undefinedundefinedrequire_once("/var/www/nc/app ... p")

PROPFIND /remote.php/dav/files/xxx/RAW
from xxx by xxx at 2019-11-11T19:52:55+00:00

sh: exiftool: command not found

Hello,

this app wasn't working for me. After some digging around, I found out that exiftool cannot be found from the shell in shell_exec.

sh: exiftool: command not found

My fix was to call exiftool using the full path as returned by OC_Helper::findBinaryPath.

Here's my pull reqeust: #4

The app is not working

Hi,

I'm running the snap version of nextcloud 19.0.1 in an Ubuntu 18.04 LTS.
The app is installed and activated, but it's not working. The .CR2 files are supposed to be previewed. Even clicking on them doesn't display the image.

Neither it does in the Android app.

Can someone please help me to troubleshoot it? In Nextcloud's register there are no messages related to the Camera RAW previews

Compatibility with Nextcloud 14

Hi,

as you may have already seen, we have entered the beta phase for the release of Nextcloud 14. We usually try to keep up compatibility with previous app versions, but in some cases apps need some adjustments to properly work on new Nextcloud releases. With Nextcloud 14 there have been quite some changes in that regard:

You can find a list of all critical changes for app developers and admins at nextcloud/server#7827. You can run occ app:check-code to validate that there are no issues with deprecated or private message calls.

One critical change is the overall restructuring of the main template (nextcloud/server#9982) that might require some adjustments in your app.

We would be very pleased if you can make your app compatible with Nextcloud 14 and release a new version to the app store, so that users can properly test it and the upgrade experience to Nextcloud 14 will be even better than before.

Feel free to ask, if you have any questions regarding making your app compatible with Nextcloud 14.

Thanks for being part of the Nextcloud community and for all the effort you put into providing this app 🚀 .

Apple HEIC support

It's no secret that Apple made that new picture format available on certain iPhones, and that there is no support, right now, for this format into Nextcloud.

Would it be possible to build this in this plugin ?

You should check "Tifig" out, here on github : https://github.com/monostream/tifig
That library is able to convert HEIC to different formats. Even if it just adds support to server owners being able to install that library/package on their system at first, it's still an improvement.

Mobile app preview?

Hi there. Love this app! Should it work in the official Nextcloud IOS app? When I click on a RAW photo in the mobile app it downloads it instead of opening the preview.

autoload error

Hi,

I tried installing on a brand new nextcloud server your app, and I can activate it without problem.
However, when accessing the gallery, I have no previews (only the "ongoing ring").

I find in the apache error log the following messages:
[Sun Apr 08 13:29:53.418239 2018] [:error] [pid 1004] [client 0.0.0.0:0000] PHP Fatal error: require(): Failed opening required '/var/www/html/nextcloud/apps/camerarawpreviews/lib/../vendor/autoload.php' (include_path='/var/www/html/nextcloud/3rdparty/pear/console_getopt:/var/www/html/nextcloud/3rdparty/pear/pear_exception:/var/www/html/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/html/nextcloud/3rdparty/pear/archive_tar:/var/www/html/nextcloud/apps') in /var/www/html/nextcloud/apps/camerarawpreviews/lib/RawPreview.php on line 3
That autoload.php page is not existing in your project.
I see that in other "official" apps (gallery for example), this file does exist.

Maybe it is necessary to include another file ? Or include it directly in your project ? Or specify a particular include_path ?

PS: I also think there is a mistake in your README, there should be no escape char for \ in here:
'enabledPreviewProviders' => array( 'OCA\\CameraRawPreviews\\RawPreview', 'OCA\\CameraRawPreviews\\IndesignPreview' // for indesign files (.indd) ),

Force preview

Its possible to force preview? I mean, I have a lot of raws, I have to wait a lot in each folder to make the previews. I dont know if is possible to force this, and allow next cloud to generate the raws previews for all folders...

Regards!

GD support

This should work with as many installations as possible.

High RAM/CPU usage when generating large amounts of previews

When opening a folder with lots of RAW images for the first time and scrolling to the bottom, I noticed that my server's fans went into overdrive. Upon further inspection it was because this addon was attempting to run every single preview generation at the same time (~400 images). This was maxing out the CPU and using over 20GB of RAM (All available and a good chunk of swap).

I would highly recommend adding some sort of configurable pooling/locking mechanism to limit how many processes can run at once to avoid having servers fall over.

Preview of TIFFs without embedded preview

This line

'tif' => ['image/x-dcraw'],

registers a wrong MIME type for .tif files (no .tiff files, tho) so that your RawPreview class can handle TIFF previews. Currently RawPreview can only handle TIFFs with embedded previews. OC\Preview\TIFF can also preview TIFF files that do not include a preview (like these test-tiffs.zip )

exiftool returns this for the example file:

./exiftool -json -preview:all t/XING_T24.tiff 
[{
  "SourceFile": "t/XING_T24.tiff"
}]

Could you maybe add a check that sees if the Nextcloud instance has OC\Preview\TIFF configured for a preview provider and if that's the case skip the MIME type registration of tif to image/x-dcraw?
Alternatively one could probably teach this app to fall back to extracting a preview form the SourceFile TIFF when the imagick PHP extension is present and exiftool does not return a PreviewTIFF key.

see nextcloud/server#12876

DNG files - Unable to find preview data

Hey, apparently my server can't generate previews of DNG files. Y tried with NEF files, and is working just fine, so I don't know if is because DNG is not supported (haven't found if there is a list of supported formats), or something else is broken on my end.

The logs will just return Camera Raw Previews: Unable to find preview data when trying to preview any DNG file, and the preview will be loading forever with a warning error about not being a preview available.

I also tried multiple DNG files from multiple cameras and sources, without any results...

Can't enable app

As instructed, I copied and extracted file to Nextcloud/Apps. After fixing permission, I tried to enable app from disabled apps section. At this point Nextcloud threw error :Could not download app camerarawpreviews". Any reason why?

Nextcloud version: 12.0.3

Zero Size Image String Error

I'm running NC 12.0.3 with PHP 7.0.25 on FreeBSD. I'm getting Camera Raw Previews: Zero size image string passed when trying to preview a .dng file.

I'm thinking this is related, specificially this:

$im2->setImageFormat('gif');
// ...
$frame->readImageBlob($im2);

I've poked around in RawPreview.php but couldn't get anything resolved.

Have you run into anything like this?

App stopped working in ownCloud 10.0.9

Hi,

First off thank you for creating this app. I'm having trouble getting this to work. I use a custom docker image that includes the imagick module.

When I open CR2 images in ownCloud web I get this when clicking on the respective HTTP request in dev tools:

{
  "message": "I'm truly sorry, but we were unable to generate a preview for this file",
  "success": false
}

When the file list loads I see a lot of GET 404s for URLs like these:

https://oc.example.com/remote.php/dav/files/agross/IMG_5053.cr2?c=c1c404471c543834c7dba5f6db7f5f18&x=64&y=64&forceIcon=0&preview=1

No other errors are logged (not even in owncloud.log)

Previews for JPEGs load just fine.

Won't load in version

After updating to 18.0.7 web installer I get "This app cannot be installed because the following dependencies are not fulfilled:
The command line tool perl could not be found"

exif_read_data errors - Illegal format code

exif_read_data(DSC_0114.NEF): Process tag(x0003=UndefinedTa): Illegal pointer offset(x0003 &lt; xA2221002) at /var/snap/nextcloud/12753/nextcloud/extra-apps/metadata/lib/Controller/MetadataController.php#215

I get a bunch of these and no previews ever worked on my installation.
i am running nextcloud as a snap.

Memory limit is around 16 gb, imagemagic has been installed.
Any idea what I can do to test/make it work for my lovely .NEF pictures? :)

JPEG parameter struct mismatch: library thinks size is 624, caller expects 656

Hi!

I got following error on my NC.
{"reqId":"vutjHWK0DJ5v8hlNY9TT","level":3,"time":"2020-10-22T07:23:19+00:00","remoteAddr":"192.168.88.1","user":"admin","app":"camerarawpreviews","method":"GET","url":"/index.php/core/preview?fileId=418301&c=0d17712978c9817c6d397921e769f2d3&x=188&y=188&forceIcon=0","message":{"Exception":"Intervention\Image\Exception\NotReadableException","Message":"Unable to read image from path (/tmp/708591019991d8bf1a76150d48d5c957.jpg).","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/camerarawpreviews/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php","line":339,"function":"initFromPath","class":"Intervention\Image\Imagick\Decoder","type":"->","args":["/tmp/708591019991d8bf1a76150d48d5c957.jpg"]},{"file":"/var/www/nextcloud/apps/camerarawpreviews/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php","line":66,"function":"init","class":"Intervention\Image\AbstractDecoder","type":"->","args":["/tmp/708591019991d8bf1a76150d48d5c957.jpg"]},{"file":"/var/www/nextcloud/apps/camerarawpreviews/vendor/intervention/image/src/Intervention/Image/ImageManager.php","line":54,"function":"init","class":"Intervention\Image\AbstractDriver","type":"->","args":["/tmp/708591019991d8bf1a76150d48d5c957.jpg"]},{"file":"/var/www/nextcloud/apps/camerarawpreviews/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php","line":58,"function":"make","class":"Intervention\Image\ImageManager","type":"->","args":["/tmp/708591019991d8bf1a76150d48d5c957.jpg"]},{"file":"/var/www/nextcloud/apps/camerarawpreviews/lib/RawPreviewBase.php","line":133,"function":"make","class":"Intervention\Image\ImageManagerStatic","type":"::","args":["/tmp/708591019991d8bf1a76150d48d5c957.jpg"]},{"file":"/var/www/nextcloud/apps/camerarawpreviews/lib/RawPreviewBase.php","line":61,"function":"getResizedPreview","class":"OCA\CameraRawPreviews\RawPreviewBase","type":"->","args":["/var/www/nextcloud/data/admin/files/Private/France (2019)/disneyland/RAW/_ASC6117.NEF",2048,2048]},{"file":"/var/www/nextcloud/apps/camerarawpreviews/lib/RawPreviewIProviderV2.php","line":25,"function":"getThumbnailInternal","class":"OCA\CameraRawPreviews\RawPreviewBase","type":"->","args":[{"class":"OC\Files\Node\File"},2048,2048]},{"file":"/var/www/nextcloud/lib/private/Preview/GeneratorHelper.php","line":63,"function":"getThumbnail","class":"OCA\CameraRawPreviews\RawPreviewIProviderV2","type":"->","args":[{"class":"OC\Files\Node\File"},2048,2048]},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":241,"function":"getThumbnail","class":"OC\Preview\GeneratorHelper","type":"->","args":[{"class":"OCA\CameraRawPreviews\RawPreviewIProviderV2"},{"class":"OC\Files\Node\File"},2048,2048]},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":141,"function":"getMaxPreview","class":"OC\Preview\Generator","type":"->","args":[{"class":"OC\Files\SimpleFS\SimpleFolder"},{"class":"OC\Files\Node\File"},"image/x-dcraw",""]},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":107,"function":"generatePreviews","class":"OC\Preview\Generator","type":"->","args":[{"class":"OC\Files\Node\File"},[{"width":188,"height":188,"crop":true,"mode":"fill"}],"image/x-dcraw"]},{"file":"/var/www/nextcloud/lib/private/PreviewManager.php","line":190,"function":"getPreview","class":"OC\Preview\Generator","type":"->","args":[{"class":"OC\Files\Node\File"},188,188,true,"fill",null]},{"file":"/var/www/nextcloud/core/Controller/PreviewController.php","line":170,"function":"getPreview","class":"OC\PreviewManager","type":"->","args":[{"class":"OC\Files\Node\File"},188,188,true,"fill"]},{"file":"/var/www/nextcloud/core/Controller/PreviewController.php","line":143,"function":"fetchPreview","class":"OC\Core\Controller\PreviewController","type":"->","args":[{"class":"OC\Files\Node\File"},188,188,false,false,"fill"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"getPreviewByFileId","class":"OC\Core\Controller\PreviewController","type":"->","args":[418301,188,188,false,false,"fill"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OC\Core\Controller\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OC\Core\Controller\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OC\Core\Controller\PreviewController","getPreviewByFileId",{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"_route":"core.Preview.getPreviewByFileId"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"_route":"core.Preview.getPreviewByFileId"}]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"class":"OC\AppFramework\Routing\RouteActionHandler"},{"_route":"core.Preview.getPreviewByFileId"}]},{"file":"/var/www/nextcloud/lib/base.php","line":1011,"function":"match","class":"OC\Route\Router","type":"->","args":["/core/preview"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/apps/camerarawpreviews/vendor/intervention/image/src/Intervention/Image/Imagick/Decoder.php","Line":29,"Previous":{"Exception":"ImagickException","Message":"JPEG parameter struct mismatch: library thinks size is 624, caller expects 656 `/tmp/708591019991d8bf1a76150d48d5c957.jpg' @ error/jpeg.c/JPEGErrorHandler/322","Code":425,"Trace":[{"file":"/var/www/nextcloud/apps/camerarawpreviews/vendor/intervention/image/src/Intervention/Image/Imagick/Decoder.php","line":25,"function":"readimage","class":"Imagick","type":"->","args":["/tmp/708591019991d8bf1a76150d48d5c957.jpg"]},{"file":"/var/www/nextcloud/apps/camerarawpreviews/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php","line":339,"function":"initFromPath","class":"Intervention\Image\Imagick\Decoder","type":"->","args":["/tmp/708591019991d8bf1a76150d48d5c957.jpg"]},{"file":"/var/www/nextcloud/apps/camerarawpreviews/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php","line":66,"function":"init","class":"Intervention\Image\AbstractDecoder","type":"->","args":["/tmp/708591019991d8bf1a76150d48d5c957.jpg"]},{"file":"/var/www/nextcloud/apps/camerarawpreviews/vendor/intervention/image/src/Intervention/Image/ImageManager.php","line":54,"function":"init","class":"Intervention\Image\AbstractDriver","type":"->","args":["/tmp/708591019991d8bf1a76150d48d5c957.jpg"]},{"file":"/var/www/nextcloud/apps/camerarawpreviews/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php","line":58,"function":"make","class":"Intervention\Image\ImageManager","type":"->","args":["/tmp/708591019991d8bf1a76150d48d5c957.jpg"]},{"file":"/var/www/nextcloud/apps/camerarawpreviews/lib/RawPreviewBase.php","line":133,"function":"make","class":"Intervention\Image\ImageManagerStatic","type":"::","args":["/tmp/708591019991d8bf1a76150d48d5c957.jpg"]},{"file":"/var/www/nextcloud/apps/camerarawpreviews/lib/RawPreviewBase.php","line":61,"function":"getResizedPreview","class":"OCA\CameraRawPreviews\RawPreviewBase","type":"->","args":["/var/www/nextcloud/data/admin/files/Private/France (2019)/disneyland/RAW/_ASC6117.NEF",2048,2048]},{"file":"/var/www/nextcloud/apps/camerarawpreviews/lib/RawPreviewIProviderV2.php","line":25,"function":"getThumbnailInternal","class":"OCA\CameraRawPreviews\RawPreviewBase","type":"->","args":[{"class":"OC\Files\Node\File"},2048,2048]},{"file":"/var/www/nextcloud/lib/private/Preview/GeneratorHelper.php","line":63,"function":"getThumbnail","class":"OCA\CameraRawPreviews\RawPreviewIProviderV2","type":"->","args":[{"class":"OC\Files\Node\File"},2048,2048]},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":241,"function":"getThumbnail","class":"OC\Preview\GeneratorHelper","type":"->","args":[{"class":"OCA\CameraRawPreviews\RawPreviewIProviderV2"},{"class":"OC\Files\Node\File"},2048,2048]},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":141,"function":"getMaxPreview","class":"OC\Preview\Generator","type":"->","args":[{"class":"OC\Files\SimpleFS\SimpleFolder"},{"class":"OC\Files\Node\File"},"image/x-dcraw",""]},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":107,"function":"generatePreviews","class":"OC\Preview\Generator","type":"->","args":[{"class":"OC\Files\Node\File"},[{"width":188,"height":188,"crop":true,"mode":"fill"}],"image/x-dcraw"]},{"file":"/var/www/nextcloud/lib/private/PreviewManager.php","line":190,"function":"getPreview","class":"OC\Preview\Generator","type":"->","args":[{"class":"OC\Files\Node\File"},188,188,true,"fill",null]},{"file":"/var/www/nextcloud/core/Controller/PreviewController.php","line":170,"function":"getPreview","class":"OC\PreviewManager","type":"->","args":[{"class":"OC\Files\Node\File"},188,188,true,"fill"]},{"file":"/var/www/nextcloud/core/Controller/PreviewController.php","line":143,"function":"fetchPreview","class":"OC\Core\Controller\PreviewController","type":"->","args":[{"class":"OC\Files\Node\File"},188,188,false,false,"fill"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"getPreviewByFileId","class":"OC\Core\Controller\PreviewController","type":"->","args":[418301,188,188,false,false,"fill"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OC\Core\Controller\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OC\Core\Controller\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OC\Core\Controller\PreviewController","getPreviewByFileId",{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"_route":"core.Preview.getPreviewByFileId"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"_route":"core.Preview.getPreviewByFileId"}]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"class":"OC\AppFramework\Routing\RouteActionHandler"},{"_route":"core.Preview.getPreviewByFileId"}]},{"file":"/var/www/nextcloud/lib/base.php","line":1011,"function":"match","class":"OC\Route\Router","type":"->","args":["/core/preview"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/apps/camerarawpreviews/vendor/intervention/image/src/Intervention/Image/Imagick/Decoder.php","Line":25},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36","version":"19.0.4.2","id":"5f9133680e6cd"}

Each time I enter directory with RAW files, NC generates multiple errors above.

What I did before?
So I really love this app and I used to use it recently. Everything was fine.
But I decided to improve my previews (not cameraraws previews, but default NC previews), I wanted to decrease disk space that used by NC. So, I deleted all previews, and reconfigured it as it is said in this article https://ownyourbits.com/2019/06/29/understanding-and-improving-nextcloud-previews/
After this I started generating new previews and now my previews are 7 gb (It was 100+Gb before configuring).
But camerarawpreviews not working after this =(

What can I do?

Issues generating previews in FreeBSD

Hey,

Just saw a fixed issue regarding generating previews on FreeBSD. Unfortunately, we are current (literally just built the install yesterday) and we are still having issues with previews. We followed the ticket instructions, perl seemingly generates the preview just fine but it doesn't show in the gallery even with a new upload of the file with a different name, but can't seem to get it to work beyond this.

Any assistance in this would be much appreciated! We are hoping to get this into our clients environment on Friday but told them that there will be some bugs to work out and final configuration to be made. Anything I can do to help you along with this process, I'm more than willing. Just let me know what you need!

JPG Previews

Not sure if it's this app, but my JPG previews has stopped working ;o The RAW works just fine tho. This is the only unofficial app I'm running.

nextcloud issue

Hi,

nextcloud stucks into maintance mode during camerarawpreviews update. NC is 13.0.2 on debian 9.

CPU overloading on opening large photo folder

Hi !

Tonight I opened a folder with ~100 photos of 32MB each. The total folder is around 3.2GB.
The server went unreachable few minutes after. I needed to hard reboot it

Nextcloud version : 19.0.1 Dockerized
Application version : 0.7.4
File format : .CR2
I don't know if it's important, but the folder is a shared folder

The first analysis show a CPU overconsumption :

image

image

100 load avg 1 💥 I've only two cores on this server

And the responsible is the apache2 process.

From 22 processes to 114.

image

Without further reading on your application's code, i guess that maybe the lazyloading is not implemented and on the folder open, it tried to load previsualization of the whole folder ?

File Format

Hi. What file formats does your app support? I was looking through the app code to see if I could figure it out and expand it to Sony's ARW format. Maybe I have the NextCloud environment setup wrong?

No function despite imagick

Hello,

and first of all thanks for this great app!

I have the problem that the app does not work for me.
The current situation:

  • Freenas FreeBSD as operating system
  • Nextcloud 13 installed (works without problems)
  • php7.2 incl imagick installed, this also runs "php -m".

but it is not possible to see RAW data in the preview.

Raw images not appearing in Photos

I install this plugin, and it is working; when I click a raw image, it shows a preview as written on the tin.

However, I see lots of comments saying "great, this even works in the gallery!", which is exactly what I want, but that is not working for me. If I add new jpeg's they appear in the gallery, if I add a CR2, it does not appear in the gallery, and I can only see it via the filesystem.

This is tested against a brand new instance of nextcloud, most recent release.
Have I missed something? I wasn't able to find any means for configuration of this plugin.

Thanks.

Nikon NEF raw files

Hi, I've got an older camera, would it be possible to make it able to preview NEF files?

Check for more preview tags for better coverage of exiftool's supported formats

$ exiftool -json -preview:all file.dng

Will output this:

[{
  "SourceFile": "file.dng",
  "PreviewImage": "(Binary data 183576 bytes, use -b option to extract)",
  "ThumbnailTIFF": "(Binary data 131544 bytes, use -b option to extract)"
}]

A simple regex that extracts the amount of bytes and pics the tag with the highest number. Should also whitelist tags since this can be anything.

High CPU wait generating .CR2 previews

During preview generation CPU wait (top wa) stay above 50% most of the time while the preview generation process or any other active process won't tax the CPU more than 5 to 10%. Load average in 5 minutes goes as high as 5 in a Celeron dual core CPU (J1800) with 4GB RAM running on Linux omv 4.14.0-0.bpo.3-amd64 #1 SMP Debian 4.14.13-1~bpo9+1 (2018-01-14) x86_64 GNU/Linux. I would understand if I saw high CPU load due to the conversion but it seem that the poor performance of about 1 minute per CR2 photo is mostly I/O wait when the actual I/O is very low - mostly below 500KB/s with occasional spikes.
Generating previews for JPGs works jus fine and very quickly.

No previews generated for DNG

I use nextcloudpi with the app but there are no previews generated for the DNG files the Android app open camera shoots. Unfortunately I cannot find any messages in the logs, thus I am not even sure the app is working. How can I find out.? Nextcloudpi is supposedly pre-configured with imagemagick. The logs only contain debug output of the normal gallery app preview generator which fails to process the DNG files.

I would upload a sample but GitHub apparently does not allow DNG as attachment.

NextCloud Update to 0.5.6 failed

Camera RAW Previews
Beschreibung anzeigen…
[1] Für diese App ist eine Aktualisierung verfügbar (to (0.5.6).
[2] Update never ends.
Message:
Diese Nextcloud-Instanz befindet sich gerade im Wartungsmodus, was eine Weile dauern kann.
Diese Seite aktualisiert sich automatisch, wenn die Nextcloud-Instanz wieder verfügbar ist.
Login is not possible.
config/config.php
change 'maintenance' => true, to 'maintenance' => false,
Login is now again possible, but Camera RAW works mo longer and show me the message, that ist some update possible -> [1] But update don't work -> [2]
Remark: The version 0.5.5 had work perfect.
SOS-Solution:
Rename the folder apps/camerarawprewiews to apps/camerarawprewiews.bak and then activate the app camerarawprewiew in the backend again > and it work.

Don't work RAW images preview

Updated to version 20.0.2, but for several major versions the preview of RAW images does not work ...
Maybe it's some kind of cache? Reinstalled the application, didn't help.
Can you help me?

updating in nextcloud 17

when I try to update to version 7.1 of camerarawpreviews, it tries to download the wrong github link.

nextcloud log containing the unavailable package link:
{"Exception":"GuzzleHttp\Exception\ClientException","Message":"Client error: GET https://github.com/ariselseng/camerarawpreviews/releases/download/v0.7.1/camerarawpreviews_nextcloud.tar.gz

this is the one it should point to:
https://codeload.github.com/ariselseng/camerarawpreviews/tar.gz/v0.7.1

nc16.0.1rc1

After ugpradering to nc16.0.1.rc1 the previews in thumbnail view links to download of the files, not the fullsize preview. Is there any way to fix this ? Gallery view works fine, but the fullsize previews if prefered. The fullsize preview works fine with jpg and regular image format.

ARW-Format (RAW Picture from Sony)

Felicitation to the developers for excellent work!
It would be very helpful, if you integrate the ARW-Format* for previews in OwnCloud too, because I use OwnCloud for sharing my fotos with my buddy.
Thank you.

  • ARW is the RAW-Format from Sony, for example ILCE-/M2 (Alpha 7 II).

No preview and Message "Error with loading XXXX.cr2"

Hy I´m using the Nextcloud as Storage for my pictures. With the new Version 18.0.4 I only get the message "Error with loading..." or in german "Fehler beim Laden" if I want to have a preview of any .cr2.

There is no Log entry or anything else...

Thanks for the help

Support for Nextcloud 15

Nextcloud 15 has been released today. It would be nice if you could update this app to work on Nextcloud 15! Thank you!

0.7.6 - exiftool.bin testet positive for virus! - Backdoor.Linux.bskw

Hi,
I updated the app on my nextcloud yesterday and just got the message that the file /vendor/exiftool/exiftool/exiftool.bin
testet positive for a fairly new linux virus: Backdoor.Linux.bskw

https://www.virustotal.com/gui/file/879d6b4b6203b411731fc35c2b74abd8740f39dcaa694d494d204f54b475d6d9/detection
I sincerely hope this is a false positive but nevertheless I have to take actions...

I would suggest to update your app with a clean file asap!

Best

Last update broke things?

Since the last update it does not seem to work anymore. Canon files, Sony and DNG are not giving a preview anymore. Something seems wrong, love the project regardless!

Activation Issue

In order to be able to activate the App, you should rename the App folder "CameraRawPreviews" inside the NextCloud Apps folder.

To activate: sudo -u www-data php occ app:enable CameraRawPreviews

Feature Request: Canon CR3 RAW support

Apologies if it already works - Google hasn't returned any results and I'm reluctant to install NextCloud without this requirement.

As the title suggests, please add support for Canon CR3 RAW image files.

Thanks

randomly stopped working

I cant reinstall either, getting the error

This app cannot be installed because the following dependencies are not fulfilled:
The command line tool perl could not be found

I'm on the latest stable version of nextcloud

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.