Guest User

Untitled

a guest
Jul 17th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. <?php
  2.  
  3. shell_exec("convert input.png
  4. -gravity Southwest -background '#f48fb0' -splice 0x44
  5. -pointsize 30 -fill white -annotate +10+4 'This is a long caption texts that I need to place in the image caption... blah blah blah blah... This is a long caption texts that I need to place in the image caption... blah blah blah blah... ' output.png");
  6.  
  7. ?>
  8.  
  9. wd=`convert logo: -format "%w" info:`
  10.  
  11. convert logo:
  12. ( -size ${wd}x -background '#f48fb0' -gravity center -fill white
  13. label:'This is a long caption texts that I need to place in the image caption... blah blah blah blah... This is a long caption texts that I need to place in the image caption... blah blah blah blah... ' )
  14. -append output2.png
  15.  
  16. convert logo:
  17. ( -size ${wd}x -background '#f48fb0' -gravity center -fill white -pointsize 30
  18. caption:'This is a long caption texts that I need to place in the image caption... blah blah blah blah... This is a long caption texts that I need to place in the image caption... blah blah blah blah... ' )
  19. -append output3.png
  20.  
  21. <?php
  22. $wd = exec("convert input.png -format '%w' info:");
  23. exec("convert logo: ( -size ${wd}x -background '#f48fb0' -gravity center -fill white label:'This is a long caption texts that I need to place in the image caption... blah blah blah blah... This is a long caption texts that I need to place in the image caption... blah blah blah blah... ' ) -append output.png");
  24. ?>
  25.  
  26. <?php
  27. exec("wd=`convert input.png -format '%w' info:`
  28. convert input.png ( -size ${wd}x -background '#f48fb0' -gravity center -fill white label:'This is a long caption texts that I need to place in the image caption... blah blah blah blah... This is a long caption texts that I need to place in the image caption... blah blah blah blah... ' ) -append output.png");
  29. ?>
Add Comment
Please, Sign In to add comment