PPM support?

coldpenguin

Joined: 2009-04-22
Posts: 15
Posted: Sun, 2013-10-27 16:09

Does gallery3 support PPM out of the box?????

I have been trying to determine why I can't import rawphotos.

I have increased the file size etc.

But, as far as I can tell, the rawphoto module converts the image to a ppm, then kinda stops.

Trying to upload a ppm also fails, looks like it isn't a supported format (I do have ImageMagick activated)

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sun, 2013-10-27 17:31

"Out of the box": I'm not 100%, but I don't think so. I'd expect the module to address acceptance of whatever it produces. (I have never used the module as I have no use for RAW images in a Gallery.)

What's does it say in your logs?

I'm assuming that you're using the latest version of Gallery and have everything else on the requirements checklist:
http://codex.galleryproject.org/Gallery3:Modules:rawphoto

Also, there's a dedicated forum for the module:
http://galleryproject.org/node/101817

FYI: http://galleryproject.org/node/91394 (in case you need additional filetypes not covered by the rawphoto module, but I don't know that you do)

 
coldpenguin

Joined: 2009-04-22
Posts: 15
Posted: Sun, 2013-10-27 18:23

Thanks,
The logs say nothing, of any use anyway, they are all 200 apart from one 400 (and a 304, a redirect).
Nothing is reported to the error_log though for the 400, and there is nothing in the gallery var/logs/ for this time period.

Everything on the gallery updates is updated, gallery core is 58, it isn't giving the option to auto-update to 59
The rawphoto module checks that ther is a ppm graphics handler, but doesn't add ppm to the list of accepted filenames. It converts the RAW image to PPM, and then appears to do a save on the temporary file, I think that it is this that might be generating the 400 perhaps (bad request, doesn't really fit).

---
Upgrade your Gallery installation to 3.0.3 or higher. Before version 3.0.3 is released, you will have to pull build 164 or higher using git.
>Running 3.0.9
Use git to pull the module source from

:chadparry/gallery3-contrib.git rawphoto.
>Done via tar
Install the dcraw tool. To access all features, use at least version 8.81. Installation may not be possible without elevated permissions on your web host.
>dcraw installed, and can convert a CR2 to ppm (but doesn't do it properly, I need to investigate as my old system did, I think I patched it).
Activate one of the graphics toolkits that supports the PPM image format: either ImageMagick or GraphicsMagick. Raw Photos will not work with GD.
>ImageMagick activated
Activate the module at Login -> Admin -> Modules. Check the box next to the module Raw Photos. Click Update at the bottom of the page.
>Done
Optionally, enable the Keep Original module to preserve the original raw format. Otherwise, the files will be converted to the JPEG format and the originals
will be discarded.
>Was done, but has now been disabled, keep things simple till they work
Configure the Raw Photos module at Login -> Admin -> Raw Photos. You can optionally add an ICC profile, to fine tune the color conversion.
>Isn't any real configuration here, not using ICC profile yet (as there are different ones depending on the mode the camera is set to).
---

I'll look through the other thread, thanks.
All log entries, httpd/(access|error)_log, gallery3/var/logs/* during photo upload

==> /var/log/httpd/access_log <==
192.168.1.43 - - [27/Oct/2013:18:08:59 +0000] "GET /gallery3/themes/clean_canvas/css/clean/themeroller/images/ui-bg_inset-hard_100_fcfdfd_1x100.png HTTP/1.1" 304 - "http://gallery/gallery3/index.php/combined/css/6e43d1c8d9ce8381d18dbc97cfbd7686" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"
192.168.1.43 - - [27/Oct/2013:18:08:59 +0000] "GET /gallery3/index.php/uploader/index/14 HTTP/1.1" 200 7482 "http://gallery/gallery3/index.php/test" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"
192.168.1.43 - - [27/Oct/2013:18:09:00 +0000] "GET /gallery3/lib/swfobject.js?_=1382897334017 HTTP/1.1" 200 10231 "http://gallery/gallery3/index.php/test" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"
192.168.1.43 - - [27/Oct/2013:18:09:01 +0000] "GET /gallery3/lib/uploadify/jquery.uploadify.min.js?_=1382897334537 HTTP/1.1" 200 7488 "http://gallery/gallery3/index.php/test" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"
192.168.1.43 - - [27/Oct/2013:18:09:01 +0000] "GET /gallery3/themes/clean_canvas/css/clean/themeroller/images/ui-bg_gloss-wave_55_7a7a7a_500x100.png HTTP/1.1" 304 - "http://gallery/gallery3/index.php/combined/css/6e43d1c8d9ce8381d18dbc97cfbd7686" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"
192.168.1.43 - - [27/Oct/2013:18:09:01 +0000] "GET /gallery3/themes/clean_canvas/css/clean/themeroller/images/ui-icons_dedede_256x240.png HTTP/1.1" 304 - "http://gallery/gallery3/index.php/combined/css/6e43d1c8d9ce8381d18dbc97cfbd7686" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"
192.168.1.43 - - [27/Oct/2013:18:09:01 +0000] "GET /gallery3/lib/uploadify/uploadify.swf.php HTTP/1.1" 302 - "http://gallery/gallery3/index.php/test" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"
192.168.1.43 - - [27/Oct/2013:18:09:01 +0000] "GET /gallery3/lib/uploadify/uploadify.swf.php?token=0cf2df8bdec06781fd0e6b28bdbf1eae HTTP/1.1" 200 23118 "http://gallery/gallery3/index.php/test" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"
192.168.1.43 - - [27/Oct/2013:18:09:14 +0000] "GET /gallery3/lib/uploadify/cancel.png HTTP/1.1" 304 - "http://gallery/gallery3/index.php/test" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"
192.168.1.43 - - [27/Oct/2013:18:09:14 +0000] "POST /gallery3/index.php/uploader/add_photo/14 HTTP/1.1" 400 21 "-" "Shockwave Flash"
192.168.1.43 - - [27/Oct/2013:18:09:15 +0000] "GET /gallery3/themes/clean_canvas/images/clean/ico-success.png HTTP/1.1" 304 - "http://gallery/gallery3/index.php/combined/css/6e43d1c8d9ce8381d18dbc97cfbd7686" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"
192.168.1.43 - - [27/Oct/2013:18:09:15 +0000] "GET /gallery3/index.php/uploader/status/1/0 HTTP/1.1" 200 16 "http://gallery/gallery3/index.php/test" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sun, 2013-10-27 19:00

I can maybe try to use the module later (depending on how quickly I can get a few other things done). What kind of RAW file are you attempting to upload?

Is there anything in the Gallery logs that may go further than the server access logs?

 
coldpenguin

Joined: 2009-04-22
Posts: 15
Posted: Mon, 2013-10-28 18:23

Hi, it was a canon cr2, from a recent camera (I don't think the old-style cr2's were working either).
There was nothing in the galllery logs at all during the uploads (I was doing a tail across all logs).

Now I have been playing, I have hit a different snag, (ORM array error), so I need to fix that first before I can continue (I have reset all files back to their originals, so I might need to reset my database as well).