Advertisement
RulerOf

test image file conversion

Mar 28th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.91 KB | None | 0 0
  1. $ docker run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp python:3 python script.py
  2. Importing pillow
  3. Canot find package: pillow. Installing...
  4. Collecting pillow
  5.   Downloading Pillow-5.0.0-cp36-cp36m-manylinux1_x86_64.whl (5.9MB)
  6.     100% |████████████████████████████████| 5.9MB 319kB/s
  7. Installing collected packages: pillow
  8. Successfully installed pillow-5.0.0
  9. Select 1 to convert file to images
  10. Select 2 to convert Images to File
  11. : 2
  12. please enter directory name containing images: ./
  13. zey30QV.png Has been extracted
  14. Conversion Complete
  15. $ ls
  16. output.tar.gz   script.py   zey30QV.png
  17. $ file output.tar.gz
  18. output.tar.gz: data
  19. $ gunzip output.tar.gz
  20. gunzip: output.tar.gz: not in gzip format
  21. $ tar xzvf output.tar.gz
  22. tar: Unrecognized archive format
  23. tar: Error exit delayed from previous errors.
  24. $ du -h output.tar.gz
  25.  20M    output.tar.gz
  26. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement