Browse Source
Don't lie about the preview mimetype
Don't lie about the preview mimetype
For legacy reasons we stored all the previews with a png extention. However we did not put png data in them all the time. This caused the preview endpoints to always report that a preview is a png file. Which was a lie. Since we abstract away from the storage etc in the previewmanager. There is no need anymore to store them as .png files and instead we can use the actual file extention. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>pull/7692/head
No known key found for this signature in database
GPG Key ID: F941078878347C0C
4 changed files with 61 additions and 7 deletions
-
36lib/private/Preview/Generator.php
-
18lib/private/legacy/image.php
-
6lib/public/IImage.php
-
8tests/lib/Preview/GeneratorTest.php
Write
Preview
Loading…
Cancel
Save
Reference in new issue