Advertisement
deckoff

Prepare MTG cards for print

Aug 25th, 2012
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.53 KB | None | 0 0
  1. ; This is a script for The GIMP
  2. ;
  3. ; Description: see below
  4. ;
  5. ; Version 1.0
  6. ; Last changed: 26.08.2012
  7. ;
  8. ; Copyright (C) 2012 Dr. Stoyan Deckoff <deckoff@gmail.com>
  9. ;
  10. ; --------------------------------------------------------------------
  11. ;
  12. ; This program is free software; you can redistribute it and/or modify
  13. ; it under the terms of the GNU General Public License as published by
  14. ; the Free Software Foundation; either version 2 of the License, or
  15. ; (at your option) any later version.  
  16. ;
  17. ; This program is distributed in the hope that it will be useful,
  18. ; but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. ; GNU General Public License for more details.
  21. ;
  22. ; You should have received a copy of the GNU General Public License
  23. ; along with this program; if not, write to the Free Software
  24. ; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25. ;
  26.  
  27. (define (script-mr-magic img draw)
  28.   (gimp-context-set-background '( 0 0 0))
  29.  (gimp-image-set-resolution img 300 300)
  30.  (gimp-image-scale img 673 954)
  31.  (gimp-image-resize img 750 1044 42 46)
  32.   (gimp-image-flatten img)
  33.  (gimp-displays-flush)
  34. )
  35.  
  36. (script-fu-register
  37.  "script-mr-magic"
  38.  "<Image>/Tools/Magic the Gathering"
  39.  "Magic Cards - set correct parameters for printing and add black border, the image must be cropped first"
  40.  "Stoyan Deckoff <deckoff@gmail.com>"
  41.  "Stoyan Deckoff"
  42.  "25/08/2012"
  43.  "RGB* GRAY*"
  44.  SF-IMAGE    "Image"         0
  45.  SF-DRAWABLE "Drawable"      0
  46. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement