summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2022-05-10 13:41:08 +0000
committerEven Rouault <even.rouault@spatialys.com>2022-05-10 13:41:08 +0000
commit31811f3b56bb7498dc0ff91b85f6efc321c9880e (patch)
tree4bf22249d418c3e331c4f6c6009316db7f60ae4a /tools
parentba5f6797d5dc9a0a97d8d6609ef1bb59e3f4cbfc (diff)
parent1f133d1b3f493275ea37438c8733a7290f19b59d (diff)
downloadlibtiff-git-31811f3b56bb7498dc0ff91b85f6efc321c9880e.tar.gz
Merge branch 'fix_#29_tiffcp_orientationTag' into 'master'
tiffcp: Fix incomprehensible setting of orientation tag (fixes #29) Closes #29 See merge request libtiff/libtiff!327
Diffstat (limited to 'tools')
-rw-r--r--tools/tiffcp.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/tools/tiffcp.c b/tools/tiffcp.c
index 8d944ff6..07ed0ebc 100644
--- a/tools/tiffcp.c
+++ b/tools/tiffcp.c
@@ -776,25 +776,6 @@ tiffcp(TIFF* in, TIFF* out)
* Will copy `Orientation' tag from input image
*/
TIFFGetFieldDefaulted(in, TIFFTAG_ORIENTATION, &orientation);
- switch (orientation) {
- case ORIENTATION_BOTRIGHT:
- case ORIENTATION_RIGHTBOT: /* XXX */
- TIFFWarning(TIFFFileName(in), "using bottom-left orientation");
- orientation = ORIENTATION_BOTLEFT;
- /* fall through... */
- case ORIENTATION_LEFTBOT: /* XXX */
- case ORIENTATION_BOTLEFT:
- break;
- case ORIENTATION_TOPRIGHT:
- case ORIENTATION_RIGHTTOP: /* XXX */
- default:
- TIFFWarning(TIFFFileName(in), "using top-left orientation");
- orientation = ORIENTATION_TOPLEFT;
- /* fall through... */
- case ORIENTATION_LEFTTOP: /* XXX */
- case ORIENTATION_TOPLEFT:
- break;
- }
TIFFSetField(out, TIFFTAG_ORIENTATION, orientation);
/*
* Choose tiles/strip for the output image according to