Skip to content
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

MPO support #15124

Closed
plberd opened this issue Mar 23, 2015 · 3 comments
Closed

MPO support #15124

plberd opened this issue Mar 23, 2015 · 3 comments
Milestone

Comments

@plberd
Copy link

plberd commented Mar 23, 2015

What are the chances of adding MPO (Multi Picture Object) support on Owncloud?
MPO files are usually 3D images taken with Fujifilm 3D cammeras or some 3D smartphones. They are basically 2 jpeg files concatenated. Most linux applications treat them as jpeg files and show them as a single image (the first image, usually the left one) ignoring the rest of the file.
I usually add an MPO line to the mimetypes.list.php as 'mpo' => array('image/jpeg', null),.
And it used to work well:

  • it generates thumbnails based on the left eye image (which is great)
  • the Pictures app showed the left eye image when I clicked on an MPO file.

With OC8 I started having some troubles:

  • Pictures app doesn't work anymore (the viewer works, but not the galley app ui). I quits silently without showing any result, not even normal jpegs. When I remove the mime type and rescan all files, it works again.
  • Gallery+ app doesn't even show the image in the viewer. And they told me it's related to some exceptions from core.

So here I am. Does anyone know if adding real support for MPO files would be possible?

Thanks

@DeepDiver1975
Copy link
Member

@oparoz can you comment on this? THX

@oparoz
Copy link
Contributor

oparoz commented Mar 23, 2015

That's the reason I created PR #15088

@plberd - With the new media types, Gallery+ should be able to show those files just fine. I've tested with both JPS and MPO files.
If you understand patches, you should be able to merge the changes into oC8. If you only change lib/private/mimetypes.list.php, it only works for files you upload after you've made the change. In order to convert existing files, you need to use lib/repair/repairmimetypes.php and the occ tool to update the media type of existing files.

@DeepDiver1975 DeepDiver1975 added this to the 8.1-current milestone Mar 25, 2015
@DeepDiver1975
Copy link
Member

case closed then - fixed with #15088

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants