eobyonesays
Is ther an admin to this script?
For server speed and simplicity of setup I’ve not hooked it up to an admin backend. The variables for edit can be seen here with the code comments from the file itself.
It would be fairly trivial to have the system pull its variables from an external admin script but I was gunning for raw speed and efficiency on this build. Contact me if you have any problems setting it up.
webguysays
question. Can this be used to auto resize images that somebody uploads for presentation on a web site? IN other words it would not matter what size they upload… we could only display the size we want?
rochowsays
Great, want to buy, I have a few questions first 
How does this work exactly.
Say “mysite.com/mugshot.jpg?s=thumb”. The script loads, sees if there is a cached, if there isn’t it makes the image, uploads it to cache folder?
What if I just have “mysite.com/mugshot.jpg” with no variables? Will the PHP script be run at all?
Will it all work fine if it’s reversed? Such as “mysite.com/resize.php?image=mugshot.jpg&s=thumb”? If it works how I think it does (looks for all images) would this provide a performance boost? I intend to use it on a WP site, so if its fetching 50 images but only used 3 or 4 times, could be overkill.
How about image optimisation? Say I have a JPG … can I adjust what quality it outputs at? A simple scale between 1 and 100 is fine. Say, “mysite.com/mugshot.jpg?s=thumb&q=65” would make it 65% quality. How will that work for 8bit PNG and GIF ? Can you specify to make them 256 colours, 128 colours etc or…? (I’m not sure if this uses GD library or something).
Thanks!
drummerboysays
It would be great if the script had an option to chop if the sides of an image, so it kept it’s aspect ratio but had no sides… So like if I uploaded an image and it was a rectangle, I would like to make it 100px square but not look squashed.
That’s what’s stopping me from buying this at the moment. I would have so many uses for it if it chopped off the sides when needed.
Great script though! =]
betaorbustsays
@ rochow That’s exactly how it works. At the moment you store the originals in a folder like ./images/ and then call the resized images from ./images/resized/ so that the htaccess and php stay out of the way completely unless you’re truly looking for a resized image.
You can call it using the script and the GET variable file=somefile.png if you’d like to take out the .htaccess step but it will only give you a minor boost as .htaccess is really quite fast.
@ drummerboy, rochow Basically I decided to keep the script very lightweight as opposed to adding in cropping, image quality parameters, etc. Perhaps in the future I’ll write a full-fledged (although slower) package but this product is simply a purpose-built-for-speed way to get your images scaled up or down.
Thanks for the feedback guys; it really helps 
webguysays
Ok you guy sold me I am now an owner.
Good question from rochow. Might want to have a FAQs page for the PHP items
Or add one to the list. Couldn't find a GOOD one 
wpskinssays
Hey there, So when it brings the pixels down in size, I take it that it brings the KB’s down as well?
YouMasays
Would the optimized version (which works now with the size flag) also be possible with the width flag?
To speed up execution I axed the big flag checking section in the optimized version. As a result the size (which is a user configurable list of height/width pairs associated with names you set like “small” or “mySize”) is the only flag the optimized version looks for. If you’re into mucking about with PHP , the whole code base is extensively commented and you should be able to literally cut-and-paste the part that checks for arbitrary height and width from the full version into the optimized version.
malomediasays
What happens with vertical images? What I need is a script that can make images with the same dimensions (horizontal and vertical) like slides.
I think this system is exactly what you’re looking for.
This system doesn’t crop but rather uses a user-defined bounding box. Say your slide template can accommodate images that are maximally 800px wide and 1000px tall: If you use “mySlideImage.jpg?w=800&h=1000” on a 600×1200 (W x H) image then the system will return a resized image that is 500px by 1000px that will fit inside your 1000×1000px template.
alexandre111says
Hello,
I really want to buy it but I dont know where and how to install it ? I m a newbie.Can I install it on my wordpress blog ?if not where ?
Best
You’ll need the GD library installed but PHP (PHP has come with a working bundle of GD built in by default since version 4.3)
If you need to check your server for compatibility make a .php file with the following in it.
<?PHP
echo('<pre>');
print_r(gd_info());
echo('</pre>');
?>
It will list the format compatibilities for your copy of GD.
If you have a stock installation of PHP then you have everything you need.
rockstin316says
How do i change the aspect ration of an image from square to rectangle .. ??
Ruttyjsays
Hey, I’m having trouble implementing this application. Where do i place the scripts in the server and is there a specific folder the images have to be uploaded to. To be able to use this?... the read me file wasn’t clear…
The readme file only covers usage; check out the INSTALLATION .pdf file (or read it here: http://betaorbust.com/codeProjects/anySize/INSTALLATION.pdf)
Essentially you’re going to upload the directory structure contained in the .zip, change the path in the included .htaccess file to match your server, and make sure the cache folder can be written to.
Email me if you have any additional problems.
13comments