The 1947 - Present Chevrolet & GMC Truck Message Board Network







Register or Log In To remove these advertisements.

Go Back   The 1947 - Present Chevrolet & GMC Truck Message Board Network > Info Center > Site Feedback and Announcements

Web 67-72chevytrucks.com


Reply
 
Thread Tools Display Modes
Old 04-12-2023, 11:56 AM   #1
Rust_never_sleeps
Senior Member
 
Rust_never_sleeps's Avatar
 
Join Date: Jun 2022
Location: San Ramon,CA
Posts: 449
image rotation quick solution on macos

for the iphone rotation issues requiring image exif to be edited so they'll post correctly, there's a very simple fix on Mac, a utility called sips:

If you open Terminal in the dir where your photo lives, the syntax is this simple(180 in this example, could be 90 or 270 in your case)
Code:
/usr/bin/sips -r 180 somephoto -o outputdir
You might want to learn a few shell commands like "cd" to change directories, "ls" to list, and "mkdir" to make a new directory

I wrote a trivial script to make this a tiny bit easier, just paste this into a text file and make it executable:
Hope this helps

Code:
#! /bin/bash
#
PIC=$1
DEG=$2
OUTDIR=$3
NUMARGS=3

function usage  {
  echo "usage: $0 filename rotation output_directory";
  echo "rotation options, 90,180,270";  exit 1
}

#ARGCHECK
if [[ $# -lt $NUMARGS ]]; then
  usage
fi


/usr/bin/sips -r $DEG  $PIC -o $OUTDIR
Rust_never_sleeps is offline   Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright 1997-2022 67-72chevytrucks.com