PHP Thumb » Feature Suggestions / Requests

Feature Request: Memory-only images

(3 posts)
  1. skyzyx
    Member

    I'm probably a special case in that I'm doing some nutty things with Amazon S3, but I'd like to be able to use an S3 class to fetch the binary image data, pass that into PHPThumb, and (besides show and save) add a third option for returning the processed binary image data to a variable that I can use to write back to S3.

    Basically, I'd like the entire resizing/converting process to happen in memory, so that I can pull from (and push to) S3 without having to create temporary files on disk or be forced to output them to the buffer.

    Within a few minutes I was able to write a plugin that did the memory output, but I don't seem to be able to pass image data in without hacking on the core library — and that's not something I want to have to do.

    Thanks!

    Posted 9 months ago #
  2. It's not totally wacky, you could also apply the same principles to storing / retrieving images from the database.

    I'll try and remember to get something like this integrated :)

    Posted 9 months ago #
  3. Good news! Got this feature integrated:
    http://github.com/iselby/PHPThumb/issues/closed/#issue/2

    Should be releasing the updated code shortly...

    Posted 9 months ago #

RSS feed for this topic

Reply

You must log in to post.