Advertisement
metalx1000

Create New Doom Guy Faces for Doom WAD Mod

May 18th, 2022
1,168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.69 KB | None | 0 0
  1. #!/bin/bash
  2. ######################################################################
  3. #Copyright (C) 2022  Kris Occhipinti
  4. #https://filmsbykris.com
  5.  
  6. #This program is free software: you can redistribute it and/or modify
  7. #it under the terms of the GNU General Public License as published by
  8. #the Free Software Foundation, either version 3 of the License, or
  9. #(at your option) any later version.
  10.  
  11. #This program is distributed in the hope that it will be useful,
  12. #but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. #GNU General Public License for more details.
  15.  
  16. #You should have received a copy of the GNU General Public License
  17. #along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18. ######################################################################
  19. mkdir -p output
  20. mkdir -p graphics
  21.  
  22. for i in *.jpg;
  23. do
  24.   convert "$i" -rotate 90 -resize "30" -gravity center -crop 30x30+0+0 +repage output/${i%%.jpg}.png
  25. done
  26.  
  27. echo "stfb0.png
  28. stfb1.png
  29. stfb2.png
  30. stfb3.png
  31. stfdead0.png
  32. stfevl0.png
  33. stfevl1.png
  34. stfevl2.png
  35. stfevl3.png
  36. stfevl4.png
  37. stfgod0.png
  38. stfkill0.png
  39. stfkill1.png
  40. stfkill2.png
  41. stfkill3.png
  42. stfkill4.png
  43. stfouch0.png
  44. stfouch1.png
  45. stfouch2.png
  46. stfouch3.png
  47. stfouch4.png
  48. stfst00.png
  49. stfst01.png
  50. stfst02.png
  51. stfst10.png
  52. stfst11.png
  53. stfst12.png
  54. stfst20.png
  55. stfst21.png
  56. stfst22.png
  57. stfst30.png
  58. stfst31.png
  59. stfst32.png
  60. stfst40.png
  61. stfst41.png
  62. stfst42.png
  63. stftl00.png
  64. stftl10.png
  65. stftl20.png
  66. stftl30.png
  67. stftl40.png
  68. stftr00.png
  69. stftr10.png
  70. stftr20.png
  71. stftr30.png
  72. stftr40.png"|while read f
  73. do
  74.   img="$(ls output/*.png|shuf|head -n1)"
  75.   cp -v "$img" "graphics/$f"
  76. done
  77.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement