Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

DataObjectManager - resize image at creation by input value

Go to End

11 Posts   4198 Views


Community Member, 27 Posts

25 April 2009 at 10:41am

Hmm, howardgrigg, I think you are right, this is also a very important thing. Right now I'm not dealing with that problem, but I guess this might become a problem for me, too, soon.

So UncleCheese... Next round :D


Forum Moderator, 4102 Posts

26 April 2009 at 1:42pm

I wish such a thing were in my hands, but unfortunately, all of that is handled by the Silverstripe GD class and the solution would lie in extending that class with custom modifications.


Community Member, 27 Posts

27 April 2009 at 3:09am

Hmm, so I guess I would have to modify writeTo($filename) in the GD extended Class ?

And I would have to copy paste all the original Image methods that use the normal GD class to my extended Image Class and rewrite them, so that they use my extended GD Class ?

Or do you know an easiyer way / an exact point/method that would do the trick ?
If this is beyond your knowledge, I would open another thread, but maybe theres something I would have to add/modifiy to the DataObjectManager, too ?!

Go to Top