Election Leaflets

henare edited this page Apr 24, 2013 · 2 revisions

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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.