Burning Image 0.3 released

New version of Grails plugin for image manipulation released. Current version allows to:

  • scale image with approximate width and height
  • scale image with accurate width and height
  • add image watermark
  • crop image
  • write text on image
  • mark domain class as image container by using @FileImageContainer annotation
  • save image binded to domain class by using ImageUpladService
  • validate uploaded image

To read more go to project home page.

8 Comments

RSS feed for comments on this post.

  1. nice, writing text is something that we need to use currently . just had to apply different solution.
    good that you still develop this plugin.

    Comment by pawel — February 25, 2010 #

  2. Hi Pawel,

    I am playing with burningImage and I just can say that the plugin is excellent. As far as I understand, the possibility to store images on db is planned for 0.4, isn’t?

    Keep nice work!

    -Ignacio

    Comment by Ignacio Cases — March 11, 2010 #

  3. Thanks, nice to hear that! Yes. I’m going to start work on next features during end of March or on the beginning of April.

    Comment by admin — March 11, 2010 #

  4. Hi Pawel,

    I am trying unsuccessfully to use the upload service in BurningImage 0.3.1 using grails 1.2.1, getting the

    java.lang.IllegalArgumentException: Source file and output directory path must be provided

    at line 70 in ImageUploadService. I have a configuration like this

    ConfigurationHolder.config.bi.Photo = [
    outputDir: WEB_APP_RESULT_DIR,
    prefix: ‘prefixName’,
    images: [‘small’:[scale:[width:100, height:100, type:ScaleType.ACCURATE]],
    ‘medium’:[scale:[width:300, height:300, type:ScaleType.ACCURATE]],
    ‘large’:[scale:[width:800, height:600, type:ScaleType.APPROXIMATE]]
    ]
    ]

    located in my controller. Is that the right place to locate the config? Any ideas about what I am doing wrong?

    Cheers,

    -Ignacio

    Comment by Ignacio Cases — March 29, 2010 #

  5. Well, i didn’t check this way – i put all setting in Config.groovy (and i think that this is best place where you should keep your configuration). Also check if path to upload folder is valid (it should be relative from web-app directory). Example from my app (Config.groovy file):


    bi.User = [
    outputDir: 'images/upload/users/',
    images: ['small':[scale:[width:100, height:100, type:ScaleType.ACCURATE]],
    'medium':[scale:[width:300, height:300, type:ScaleType.ACCURATE]],
    'large':[scale:[width:800, height:600, type:ScaleType.APPROXIMATE]]
    ],
    constraints:[
    nullable:true,
    maxSize:1024000, // 1Mb
    contentType:['image/gif', 'image/png', 'image/jpg', 'image/jpeg']
    ]
    ]

    Comment by admin — March 29, 2010 #

  6. Pawel, thank you very much for your comments. After a bit reworking works like a charm.

    An issue is appearing using the tags with a domain stored in a list, e.g.,

    raising a GrailsTagException:

    Error executing tag : java.lang.IllegalArgumentException: There is no config for Photo_$$_javassist_39

    Interestingly enough, a workaround is defining a config for Photo_$$_javassist_39, as

    bi.Photo_$$_javassist_39 = [
    //same config as Photo here
    ]

    Cheers,

    -Ignacio

    Comment by Ignacio Cases — March 30, 2010 #

  7. Hi Ignacio

    Great that you solve your problems, and if you find other issue just put it in project issues list (your last issue is already there).

    Comment by admin — March 30, 2010 #

  8. Sure! 🙂

    Comment by Ignacio Cases — March 30, 2010 #

Sorry, the comment form is closed at this time.

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.