PHP Thumb » Help & Bugs » Help

Set options after initialization

(2 posts)
  1. atDev
    Member

    Is there a method we can use to set options after we create the object using the factory instead of passing it in?

    Posted 2 years ago #
  2. Sure is: setOptions()

    Here's the API doc for the function (not much there, but still): http://phpthumb.gxdlabs.com/apidocs/PhpThumb/Core/GdThumb.html#setOptions

    Basically, just pass in an associative array with the new options you want and they'll override whatever's already there. You could also add your own options this way as well for use in plugins, etc.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.