Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
feh
Commits
868fdddb
Commit
868fdddb
authored
8 years ago
by
Elliot Wolk
Browse files
Options
Downloads
Patches
Plain Diff
add cmdline opt --auto-rotate to rotate according to EXIF info
parent
465238bd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/help.raw
+1
-0
1 addition, 0 deletions
src/help.raw
src/imlib.c
+1
-1
1 addition, 1 deletion
src/imlib.c
src/options.c
+4
-0
4 additions, 0 deletions
src/options.c
src/options.h
+1
-0
1 addition, 0 deletions
src/options.h
with
7 additions
and
1 deletion
src/help.raw
+
1
−
0
View file @
868fdddb
...
...
@@ -35,6 +35,7 @@ OPTIONS
-d, --draw-filename Show the filename in the image window
--draw-tinted Show overlay texts on semi-transparent background
--draw-exif Show some Exif information (if compiled with exif=1)
--auto-rotate Rotate images according to Exif info (if compiled with exif=1)
-^, --title TITLE Set window title (see FORMAT SPECIFIERS)
-D, --slideshow-delay NUM Set delay between automatically changing slides
--cycle-once Exit after one loop through the slideshow
...
...
This diff is collapsed.
Click to expand it.
src/imlib.c
+
1
−
1
View file @
868fdddb
...
...
@@ -264,7 +264,7 @@ int feh_load_image(Imlib_Image * im, feh_file * file)
if
(
exifData
)
{
ExifByteOrder
byteOrder
=
exif_data_get_byte_order
(
exifData
);
ExifEntry
*
exifEntry
=
exif_data_get_entry
(
exifData
,
EXIF_TAG_ORIENTATION
);
if
(
exifEntry
)
if
(
exifEntry
&&
opt
.
auto_rotate
)
orientation
=
exif_get_short
(
exifEntry
->
data
,
byteOrder
);
}
file
->
ed
=
exifData
;
...
...
This diff is collapsed.
Click to expand it.
src/options.c
+
4
−
0
View file @
868fdddb
...
...
@@ -396,6 +396,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
{
"no-jump-on-resort"
,
0
,
0
,
220
},
#ifdef HAVE_LIBEXIF
{
"draw-exif"
,
0
,
0
,
223
},
{
"auto-rotate"
,
0
,
0
,
242
},
#endif
{
"cycle-once"
,
0
,
0
,
224
},
{
"no-xinerama"
,
0
,
0
,
225
},
...
...
@@ -730,6 +731,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
case
223
:
opt
.
draw_exif
=
1
;
break
;
case
242
:
opt
.
auto_rotate
=
1
;
break
;
#endif
case
224
:
opt
.
cycle_once
=
1
;
...
...
This diff is collapsed.
Click to expand it.
src/options.h
+
1
−
0
View file @
868fdddb
...
...
@@ -51,6 +51,7 @@ struct __fehoptions {
unsigned
char
draw_filename
;
#ifdef HAVE_LIBEXIF
unsigned
char
draw_exif
;
unsigned
char
auto_rotate
;
#endif
unsigned
char
list
;
unsigned
char
quiet
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment