Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Rotating Leaflet Images
# Images are uploaded mainly by the web server user and don't have good permissions applied, so to normalise the permissions: sudo chown -R deploy:www-data /srv/www/www.electionleaflets.org.au/shared/data/images/ sudo chmod -R g+w /srv/www/www.electionleaflets.org.au/shared/data/images/ # Then cd /srv/www/www.electionleaflets.org.au/current/tools/ # This rotates all images in an upload the same degrees (*anti*clockwise) php rotate.php -l [LEAFLET_ID] -d [DEGREES] # And this just does an individual image php rotate.php -i [IMAGE_ID] -d [DEGREES] # Sync them out to S3 (sync script modified to make images public) ~henare/s3syncimages.sh
Clone this wiki locally
Press h to open a hovercard with more details.