Page 1 of 1

Transform Thumbnails (while preserving source image)

Posted: Thu Oct 28, 2021 1:13 am
by GoTeamScotch
This has been requested in the past, but the threads are old and I wasn't sure if I should bump old threads or not, so I'm starting a new one.

I have images that are saved in SGI format for a video game mod I am working on. For some reason, the images are rotated 180 degrees and flipped horizontally in their original form. I would love to be able to browse a folder of SGI images in XnView and have them display in the correct orientation on my screen while leaving the original file untouched. In a perfect world, the program would allow the user to configure transform settings for thumbnails for a specific file extension (i.e. only rotate/flip SGI images, leaving other image types alone). I guess I should ask- is there a way to store orientation information for a group of files that don't natively support EXIF metadata and then have XnView use that orientation info for thumbnails?

Thanks

Re: Transform Thumbnails (while preserving source image)

Posted: Thu Oct 28, 2021 1:17 am
by GoTeamScotch
Attached is an example showing the thumbnails of my SGI images. They are rotated 180 degrees and flipped horizontally, which makes browsing a list of images difficult.

Re: Transform Thumbnails (while preserving source image)

Posted: Thu Oct 28, 2021 11:30 pm
by XnTriq
XnView MP supports XMP sidecar files, …
league_grey.rgb.xmp wrote:

Code: Select all

<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 6.0.0">
	<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
		<rdf:Description rdf:about="" xmlns:tiff="http://ns.adobe.com/tiff/1.0/">
			<tiff:Orientation>4</tiff:Orientation>
		</rdf:Description>
	</rdf:RDF>
</x:xmpmeta>
… but you would have to create them with ExifTool (e.g. league_grey.rgb.xmp for league_grey.rgb).
https://www.exiftool.org/metafiles.html wrote:Multiple files may be processed in a single command by specifying multiple file and/or directory names on the command line. The examples below demonstrate how to process all files with a specific extension in an entire directory tree.

11. Create XMP sidecar files for all files with extension EXT in a directory tree:

(when batch-generating sidecar files from many images, the -o form of the command is easier to use, but can not be used to modify existing XMP files)

exiftool -ext EXT -o %d%f.xmp -r DIR

where DIR is the name of the directory containing the images. The -r option causes sub-directories to be recursively processed. Multiple -ext options may be used to process different file types in a single command. With this command, same-named tags from any type of metadata will be written to the preferred XMP namespace in the output XMP file. To copy only XMP tags, -xmp:all may be added to the command. (See example 14 for more about this.)