Created
February 8, 2015 10:30
-
-
Save phoeagon/345fb2fae0aee2b3a315 to your computer and use it in GitHub Desktop.
Android Image Resizer ]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#name="IMG_20140806_120943.jpg" | |
list="IMG_20141224_201840.jpg IMG_20140617_114127.jpg IMG_20131013_215858.jpg IMG_20140113_093800.jpg IMG_20130806_154542.jpg IMG_20141224_142229.jpg IMG_20130728_151217.jpg IMG_20130909_110617.jpg IMG_20140731_102029.jpg IMG_20140710_111423.jpg IMG_20140201_184312.jpg IMG_20130725_163045.jpg IMG_20141021_191224.jpg IMG_20130728_150751.jpg IMG_20140810_122311.jpg IMG_20130728_151211.jpg IMG_20140723_121027.jpg IMG_20150122_122745.jpg IMG_20130728_151214.jpg IMG_20150128_160127.jpg IMG_20150205_122303.jpg IMG_20130929_231316.jpg IMG_20140919_144425.jpg IMG_20130728_144031.jpg IMG_20140919_144423.jpg IMG_20130804_215144.jpg IMG_20140707_122932.jpg IMG_20130728_184341.jpg IMG_20131019_120344.jpg IMG_20140828_093544.jpg IMG_20130804_190246.jpg IMG_20141224_142140.jpg IMG_20141224_220909.jpg IMG_20150106_140024.jpg " | |
for name in $list; do | |
adb pull /sdcard/DCIM/Camera/$name /run/shm/1.jpg | |
convert /run/shm/1.jpg -resize 2048x1536 /run/shm/1.tmp | |
adb push /run/shm/1.tmp /sdcard/tmp/1.tmp | |
#adb shell stat /sdcard/tmp/1.tmp | |
adb shell su -c busybox touch -r /sdcard/DCIM/Camera/$name /sdcard/tmp/1.tmp | |
#adb shell stat /sdcard/tmp/1.tmp | |
adb shell su -c cp -p /sdcard/tmp/1.tmp /sdcard/DCIM/Camera/$name | |
#adb shell stat /sdcard/DCIM/Camera/$name | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/storage/0403-0201/Съемный диск/DCIM/Camera/.aux/