Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Doing your own image manipulation and getting it into the system

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1234 Views
  • MarcusDalgren
    Avatar
    Community Member
    288 Posts

    Doing your own image manipulation and getting it into the system Link to this post

    First of all, sorry for asking a question not actually directly related to DataObjectManager. I'm asking here because this is the place where I'm actually likely to get an answer. I'm in the situation that I need to do some image manipulation that's not included in SilverStripe.

    I have been reading the GD and Image classes but so far I haven't been able to find a way to simply get the file/GD resource from them, do my manipulation and then return it. Optimally I want SilverStripe to treat my new image in the way it treats thumbnails and the like so I actually still have the old image but also have access to the my modified image.

    If anyone knows how to go about this I would very much like to hear from you!

    Once again, I'm sorry for asking here but I'm kind of desperate.

    Kindly,
    Marcus

  • Fuzz10
    Avatar
    Community Member
    786 Posts

    Re: Doing your own image manipulation and getting it into the system Link to this post

    I did not find an elegant way of doing this ... But hey , it works ...

    Have a look @

    http://www.silverstripe.org/all-other-modules/show/265218

    and

    http://www.silverstripe.org/archive/show/1144#post1144

    good luck....

  • MarcusDalgren
    Avatar
    Community Member
    288 Posts

    Re: Doing your own image manipulation and getting it into the system Link to this post

    Thanks for the resources Fuzz10!

    Your solution looks alot like what I've been trying since asking the question, namely grabbing the image myself and doing raw GD work and then returning a new GD object with the new filename to make SilverStripe happy.

    I'll read through all those threads to see if there's anything I've missed.

    Thanks again!

    1234 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.