Rotate Digital Objects

138 views
Skip to first unread message

markj...@gmail.com

unread,
May 16, 2018, 9:23:38 AM5/16/18
to AtoM Users
Hi,

I wasn't able to find another thread, but I'm wondering, is there any way to rotate an image in AtoM?
When I link a single digital object to record, I'm finding that some of my JPG images are being presented landscape instead of portrait position even though the original image is in portrait. I've tried rotating the images and re-uploading and they always load the same way.

Thank you for your help!

Best,
Mark

markj...@gmail.com

unread,
May 16, 2018, 9:24:32 AM5/16/18
to AtoM Users
I am finding that when you click the digital object however, it'll open in another page and the image is in portrait position.

sbr...@artefactual.com

unread,
May 16, 2018, 8:41:26 PM5/16/18
to AtoM Users
Hello Mark

Unfortunately, AtoM does not provide the ability to rotate images post-load.

It sounds like the issue may be an EXIF metadata issue in the images. If you use an EXIF metadata viewer to view the metadata for these images, you may find that it indicates the images should be rotated - I believe it is the "Orientation" data element.  This could cause the thumbnail representations to be created in the original orientation as instructed by the EXIF information - AtoM uses ImageMagick to generate thumbnail representations during the upload process.


Steve

sbr...@artefactual.com

unread,
May 16, 2018, 9:26:39 PM5/16/18
to AtoM Users
Hi Mark 

You also mention you rotated the images first in an editing program. It might be worth trying a different image editing program and then reload into AtoM and see if you get the same behaviour.


Steve

Mark Fellin

unread,
May 17, 2018, 8:44:13 AM5/17/18
to ica-ato...@googlegroups.com
Okay, thank you very much for the advice Steve! I will try those options and see if I can sort this out!

--
You received this message because you are subscribed to a topic in the Google Groups "AtoM Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ica-atom-users/Wv28WKLqVtc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ica-atom-users+unsubscribe@googlegroups.com.
To post to this group, send email to ica-atom-users@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/4f4739e4-9d4a-4572-a01e-06de756e37a9%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

romain guedj

unread,
Mar 1, 2022, 4:58:22 AM3/1/22
to AtoM Users

Hi everyone,

From our side (2.6.1 184), this issue looks like active. 

Orientation tag seems to be stripped out by image magick when thumbnails is created.

Original jpeg and the normalized jpeg contain the orientation exif tag : 

[EXIF]          Orientation                     : Rotate 270 CW

Imagemagick command used by AtoM strips  out orientation exif  tag without changing orientation of the thumbnail through Image Width and Image Height tags.

So orientation of thumbnails is wrong.

Should I add a new issue into github repository ?

Have a great day.

Cheers,

Romain Guedj

Le jeudi 17 mai 2018 à 14:44:13 UTC+2, Mark Fellin a écrit :
Okay, thank you very much for the advice Steve! I will try those options and see if I can sort this out!

On Wed, May 16, 2018 at 9:26 PM, <sbr...@artefactual.com> wrote:
Hi Mark 

You also mention you rotated the images first in an editing program. It might be worth trying a different image editing program and then reload into AtoM and see if you get the same behaviour.


Steve


On Wednesday, May 16, 2018 at 5:41:26 PM UTC-7, sbr...@artefactual.com wrote:
Hello Mark

Unfortunately, AtoM does not provide the ability to rotate images post-load.

It sounds like the issue may be an EXIF metadata issue in the images. If you use an EXIF metadata viewer to view the metadata for these images, you may find that it indicates the images should be rotated - I believe it is the "Orientation" data element.  This could cause the thumbnail representations to be created in the original orientation as instructed by the EXIF information - AtoM uses ImageMagick to generate thumbnail representations during the upload process.


Steve


On Wednesday, May 16, 2018 at 6:24:32 AM UTC-7, markj...@gmail.com wrote:
I am finding that when you click the digital object however, it'll open in another page and the image is in portrait position.

On Wednesday, May 16, 2018 at 9:23:38 AM UTC-4, markj...@gmail.com wrote:
Hi,

I wasn't able to find another thread, but I'm wondering, is there any way to rotate an image in AtoM?
When I link a single digital object to record, I'm finding that some of my JPG images are being presented landscape instead of portrait position even though the original image is in portrait. I've tried rotating the images and re-uploading and they always load the same way.

Thank you for your help!

Best,
Mark

--
You received this message because you are subscribed to a topic in the Google Groups "AtoM Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ica-atom-users/Wv28WKLqVtc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.

Dan Gillean

unread,
Mar 2, 2022, 10:08:37 AM3/2/22
to ICA-AtoM Users
Hi Romain, 

Don't worry about filing an issue - we use Redmine as our primary issue tracker, and due to many bots and spammers, it's currently restricted to Artefactual staff, so I will reproduce the issue and then file a ticket as needed. 

To help me reproduce this issue: 
  • Can you please tell me the version of imagemagick you have installed? You can determine this by running convert --version in the command-line, from the root installation directory of your AtoM installation
  • Are you able to share with me the file in question causing the issue, so I can try and reproduce the problem?
Thanks in advance!

Cheers, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him


You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/67da5174-2473-430a-91cc-f45d71d2fd2fn%40googlegroups.com.

romain guedj

unread,
Mar 2, 2022, 10:57:55 AM3/2/22
to AtoM Users
Hi Dan,

Thank you for your answer. 

Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib

You can download the image from the following link. https://www.swisstransfer.com/d/6ef81880-fc07-413e-aa84-7e791d1046fe

have a great day,
Cheers,
Romain

Dan Gillean

unread,
Mar 2, 2022, 11:38:50 AM3/2/22
to ICA-AtoM Users
Hi again Romain, 

Thank you for this additional information! 

I found a related bug mentioned in ImageMagick, but it's in an older version. However, I was able to reproduce the issue locally with the file you provided. It displayed with the correct orientation both in my web browser and in my local photo viewer, but the derivative was incorrectly oriented following upload into AtoM. I've now filed the following bug report: 
For now, I wonder if a workaround would be to make a copy that is properly oriented and then strip the EXIF metadata prior to upload, or similar?

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him

romain guedj

unread,
Mar 3, 2022, 1:38:46 AM3/3/22
to AtoM Users
Hi Dan,

Thanks for the bug report. At this stage, this bug is not severe because it is still possible to download the master which is not affected. So we won't do previous conversion before the ingesta.
By the way,I have used this following command to get a correct orientation by swapping Width and Height value. 

convert input.jpg -auto-orient output.jpg

Cheers,

Romain

Dan Gillean

unread,
Mar 3, 2022, 7:52:46 AM3/3/22
to ICA-AtoM Users
Thanks for the tip, Romain! This confirms my initial research - I added the suggestion of investigating the use of the --auto-orient task option to the related ticket. 

Cheers, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him

Reply all
Reply to author
Forward
Message has been deleted
0 new messages