Building a local version of Giphy - Part 2 LiveCoding
*NOTE : TODO : This pages needs updates to work with MDX*
Things done :
Don't rebuild resized images each time the page is loaded
Display the file names to get a quick search going
Get the resized gifs to animate
Size both width and height of preview images to drop into a square area
Get some CSS going to make the display nicer
Other possiblites for the future,
Present some random images at the top of the page each time it loads
See if you can use EXIF metadata to store tags and search terms
Log which images get used
If exif data works, build a tool to edit it on the gifs
If performance becomes an issue, do some pagination, but so far that isn't a problem
Make a tags filter that loads images with a specific tag
Try to make it so the main page doesn't jump to the top when you select a gif
- https : //www.mamp.info/en/mamp/mac/ - https : //www.mamp.info/en/windows/
https : //stackify.com/how - to - log - to - console - in - php/
get a little debugger going. you bugger
https : //www.php.net/manual/en/function.file - exists.php
https : //www.php.net/manual/en/function.sprintf.php
https : //stackoverflow.com/a/10128978/102401
https : //stackoverflow.com/a/34577896/102401
convert source.png - resize 500x dest.png
https : //stackoverflow.com/a/718500/102401
~ fin ~