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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   4923 Views

Avatar
Allisone

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

Avatar
UncleCheese

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.

Avatar
Allisone

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