Storing ImageMagick generated images - most space efficient option

24 views
Skip to first unread message

Radek Zajkowski

unread,
Nov 28, 2013, 5:00:34 PM11/28/13
to memc...@googlegroups.com
Hi all, 

I have some very generic code that creates an image, lets user look at it and when they're happy with it they can save it. On disk the image is ~180K, but when saved into memcached it shows up as ~900K.Any ideas on how to make this smaller or how to output ImageMagick content so it would be smaller?

$image = new Imagick();
$image->readImageBlob($gsImageSave);

//do bunch of stuff here that only Imagick can do and then try to store in memcached

$m = new \Memcached();
$m->addServer($this->memcache_server_host, $this->memcache_server_port);
$m->setOption(\Memcached::OPT_COMPRESSION, true);
$m->set("my_image", $image->getImageBlob(), time() + 600); 

Thank you,

Radek.


Radek Zajkowski

unread,
Nov 28, 2013, 5:10:43 PM11/28/13
to memc...@googlegroups.com


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "memcached" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/memcached/Z9HJEeQm7Zw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to memcached+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages