PHPSocialNetwork / phpfastcache

A high-performance backend cache system. It is intended for use in speeding up dynamic web applications by alleviating database load. Well implemented, it can drops the database load to almost nothing, yielding faster page load times for users, better resource utilization. It is simple yet powerful.
https://www.phpfastcache.com
MIT License
2.36k stars 452 forks source link

Storing image files #756

Closed mertasan closed 4 years ago

mertasan commented 4 years ago

My question

I use a package that allows the images on my website to be displayed dynamically in various sizes.

Can I store the thumbnail images created with this package in the Files driver? Is it suitable for image files? Is it possible for you to give a small code example?

If I do this, the website will not spend extra performance on creating thumbnails every time.

github-actions[bot] commented 4 years ago

Hello curious contributor ! Since it seems to be your first contribution, make sure that you've been:

Geolim4 commented 4 years ago

Hello,

Of course you can, by storing your image as a binary string: You can store your image as a binary content or an hexadecimal content (using bin2hex).

The rest of the logic is up to you.

Geolim4 commented 4 years ago

Hello @mertasan,

I’m closing this issue for now because of (inactivity / outdated code / …).

You can always reopen it though! :) Please (update the issue / add comment / clarify …).

Regards, Georges.L