NEU-Libraries / cerberus

Digital Repository Service
8 stars 0 forks source link

Error making thumbnail with pptx #555

Closed sarahjeansweeney closed 10 years ago

sarahjeansweeney commented 10 years ago

I uploaded a .ppt on Friday afternoon (neu:5m60qt068), and it seems to be stuck as an incomplete file.

2014-09-14_1046

Rather than destroy it, I tried "Complete this object". Somehow the title was missing, so I re-added that, but the file is still incomplete. If I try to edit the metadata for the file, I get a "Item will be available for edit/update when it has finished building." message.

Why won't this file finish?

dgcliff commented 10 years ago

It doesn't seem to think your file exists

screenshot 2014-09-14 11 04 57

dgcliff commented 10 years ago

And Fedora agrees. Could you email me the literal pptx file so I can try uploading it myself?

dgcliff commented 10 years ago

Hm. Odd. I found the file at http://nb4676.neu.edu:8080/fedora/objects/neu:5m60qt07j

Will look into it more

dgcliff commented 10 years ago

Wow, this is a special file. I just got this trying to upload it myself...

screenshot 2014-09-14 11 24 09

I'll look into developing some extra error handling

sarahjeansweeney commented 10 years ago

Huh. Is it just this file, or is all .pptx files?

dgcliff commented 10 years ago

As far as I know just this one, but I'll look at it more on Monday

On Sep 14, 2014, at 11:29 AM, Sarah S. notifications@github.com<mailto:notifications@github.com> wrote:

Huh. Is it just this file, or is all .pptx files?

— Reply to this email directly or view it on GitHubhttps://github.com/NEU-Libraries/cerberus/issues/555#issuecomment-55529113.

dgcliff commented 10 years ago

Ok. I'll do two things to fix this I think. One, is convert ppt and pptx to pdf before creating the jpg to stop it from erroring out. The other is put in a catch for files before trying to delete them, which I have done here

https://github.com/NEU-Libraries/cerberus/commit/6dc4f8da02e8c080c2a61fea3b09010bf7beb1db

dgcliff commented 10 years ago

Not exactly the same problem, but indicative of the issue I think - http://superuser.com/questions/388350/convert-ppt-to-jpg

dgcliff commented 10 years ago

Blech. The standard linux-y way of doing this, is with unoconv - https://github.com/dagwieers/unoconv

There are a bunch of issues with it's installation and environment being non-standard and weird. Going to put this (waaay) on the backburner. In the meantime, putting in a patch so that we don't crash the job on things that we can't make thumbnails with.