Pre-sizing your image assets can be a pain, not only do you have to do it for every single one, you have to re-do it when the design spec changes and whenever the source image is revised. It sucks. Wouldn’t it be great if the images just resized themselves? Well thats what the Directory Image Resizer Does.
Directory Image Resizer is a script that lives in your images directory and, with a neat and clear pseudo directory, resizes all your local and remote images for you. Simple to use and understand DIR works transparently and without ugly get variables.
Check out the Directory Image Resizer example page and take a look at what it can do and how it does it. If you want to use it yourself, or just want to poke around and see the code, head on over to the github page and fork it.
It’s that time of year again, time for the annual theme change. I’ll admit it snuck up on me this year, so it’s not a completely custom theme. This year I took the 2013 theme base and made some minor changes, mostly removing the header background so I could use my backdrop plugin to do something a bit different.
Outside of that I only made a minor change to the next/previous links, overall I feel the did a good job on this theme and didn’t notice anything else I really wanted to change.
Thats all for today, look for another eerily similar post next year.
I know it’s been a long time since posting, and there are various reasons, one of which was that length of time it took to create a long post, so I’m changing up the format a bit with these kinda shorter posts as I come across them, hopefully be getting directly to the point I’ll be able to make the time to get them done. Anyways, to the posting.
If your programming on a newer version of PHP, say 5.5.0 or newer you may have become rather dependent on the ability for various things like get_file_contents and is_file to use various wrappers to do there thing. I know that it’s been a huge time saver for me, but what do you do if your then forced back to an over, pre 5.5.0 version of PHP and want to check for that remote file? Simple.
$ch = curl_init($file);
$retcode = curl_getinfo($ch,CURLINFO_HTTP_CODE);
It’s as simple as that. All this function does it use curl to check the HTTP code at the supplied url and returns true or false accordingly.
Recently I’ve updated two of my older posts, I’d figure I’m make a proper post with the information
You can view the source code up the uploader page now. If you don’t want to go back to that page it’s right here: http://fatfolderdesign.com/ex/multi-upload/upload.php.txt
In the comments I’ve replied to a request to view the load.php files source code, you can find that file here: http://fatfolderdesign.com/ex/scroll_load/load.php.txt
Thats all for now, I have some new projects in the works, if any of them ever get finished I’ll be sure to post them.
More new posts coming in the new year, stay tuned.
Another year another theme, I think I’ll keep this traditional alive. This year I went with the new official WordPress theme, twentytwelve. Officially launching with version 3.5 you can download it early if you want to be hipster about it. I went through and made a bunch of changes, most of which are listed below. Continue reading
If you going to be making a plugin that requires files, particularly images, to be uploaded than using the default wordpres media uploader is a great idea. Not only does the wordpress uploader take care of all the work for you it also has a bunch of extra features like cropping and sizing, and allow for selecting files already uploaded. Implementation isn’t particularly difficult either. Continue reading