Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
6fa74862
Commit
6fa74862
authored
Nov 30, 2014
by
Morris Jobke
Browse files
Merge pull request #12398 from oparoz/patch-5
You can only change the oritentation of a JPEG
parents
40badba7
e2a9bd78
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/image.php
View file @
6fa74862
...
...
@@ -311,6 +311,10 @@ class OC_Image {
* @return int The orientation or -1 if no EXIF data is available.
*/
public
function
getOrientation
()
{
if
(
$this
->
imageType
!==
IMAGETYPE_JPEG
)
{
OC_Log
::
write
(
'core'
,
'OC_Image->fixOrientation() Image is not a JPEG.'
,
OC_Log
::
DEBUG
);
return
-
1
;
}
if
(
!
is_callable
(
'exif_read_data'
))
{
OC_Log
::
write
(
'core'
,
'OC_Image->fixOrientation() Exif module not enabled.'
,
OC_Log
::
DEBUG
);
return
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment