File: trnpix/_viewable/_HOW.txt
--SEE: _publish.py for the newer technique used today-- ========================================================================================== to shrink images for online use: once: run shrinkpix.py (only - no collect here): $W/Posts/Current/Complete$ py3 $C/shrinkpix/shrinkpix.py trnpix retain the sole _shinkpix_originals, uncollected: not included in thumbspage galleries, a one-time upload hit if ever need to restore (e.g., for better shinkpix): $W/Posts/Current/Complete$ py3 $C/shrinkpix/restore-unshrunk-images.py trnpix --and reshrink per above-- later: to list oversize images: $W/Posts/Current/Complete$ py3 $C/shrinkpix/shrinkpix.py trnpix -listonly run shrinkpix.py to individually shrink any new images added: $W/Posts/Current/Complete$ py3 $C/shrinkpix/shrinkpix.py trnpix/newexample.jpg --or/and all new in folder-- $W/Posts/Current/Complete$ py3 $C/shrinkpix/shrinkpix.py trnpix new originals will be saved by the shrinker in existing backup folder, _shinkpix_originals at root --one image later restored and manualy shrunk: see _cut/RESTORED* ========================================================================================== TO UPLOAD: NEW/AUTO: bash _publish.sh OLD/MANUAL: create trnpix/ thumbs page per below #1 (as good on mac as win) run _PUBLISH.py to copy to UNION cd $W py3 _PUBLISH.py zip trn pix folder per below #2 --via ssh or cpanel file explorer-- **see ahead** upload zip from UNION to site's htdocs/ (was: public_html/) rm -rf site's public_html/trnpix/ unzip -d . in-place there to recreate public_html/trnzip/ delete zip at site and in UNION (after: cp to thumbspage/_private?) NOW via filezilla+ssh for AWS: filezilla: upload zip from UNION to site's htdocs/ $SSH cd htdocs rm -rf trnpix unzip -d . trnpix.zip rm trnpix.zip exit mv trnpix.zip $C/thumbspage/_private/trnpix--may0920.zip #1 $U/MY-STUFF/Websites/Posts/Current/Complete$ py3 $C/thumbspage/thumbspage.py trnpix Clean thumbs folder [y or n] (enter=y)? Thumbs per row [int] (enter=4)? Thumb max size [x, y] (enter=(100, 100))? Use image-viewer pages [y or n] (enter=y)? #2 $U/MY-STUFF/Websites/UNION$ py3 $Z/zip-create.py trnpix.zip trnpix -skipcruft ---- Dec-15-19: swapped in new 2019-pyandroid-2.jpg shot+thumb here and live, didn't upload full zipfile/content Feb-16-20: full upload for new 1.7 thumbspage Jul-18-20: full upload for new 2.0 thumbspage, new 2020 shots