Генератор демотиваторов на sh


/ Published in: XML
Save to your folder(s)

| convert -quality 85 - "$4" - Если не установлен конверт можно закоментить


Copy this code and paste it in your HTML
  1. #!/bin/sh
  2. TEMPLATE='<?xml version="1.0" standalone="no"?>
  3. <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
  4. "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
  5. <svg width="800" height="640" version="1.1"
  6. xmlns="http://www.w3.org/2000/svg"
  7. xmlns:xlink="http://www.w3.org/1999/xlink">
  8. <rect width="800" height="640"
  9. style="fill:rgb(0,0,0);"/>
  10. <rect x="75" y="50" width="650" height="440"
  11. style="stroke:rgb(255,255,255);stroke-width:1;"/>
  12. <image x="77" y="52" width="646px" height="436px"
  13. xlink:href="%s"/>
  14. <text text-anchor="middle" x="50%%" y="545"
  15. font-family="Times New Roman" font-size="55"
  16. style="fill:rgb(255,255,255);">
  17. %s
  18. </text>
  19. <text text-anchor="middle" x="50%%" y="580"
  20. font-family="Verdana" font-size="20"
  21. style="fill:rgb(255,255,255);">
  22. %s
  23. </text>
  24. </svg>';
  25. printf "$TEMPLATE" "$1" "$2" "$3" | convert -quality 85 - "$4"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.