anySize - Caching image resizer

by betaorbust

Show:

eobyonesays

Is ther an admin to this script?

Posted 7 months ago
Author

betaorbust betaorbustreplied

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.

Posted 7 months ago

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?

Posted 7 months ago
Author

betaorbust betaorbustreplied

Exactly.

Let’s say they upload ./images/user_file.png then your html can have an image with the source set to ./images/resized/user_file.png?s=sizedForWebguy and the script will resize the user’s image up/down to something you can use.

Posted 7 months ago

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!

Posted 7 months ago

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! =]

Posted 7 months ago

betaorbustsays

Author

@ 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 :)

Posted 7 months ago

webguysays

Purchased

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 ;)
Posted 7 months ago
Author

betaorbust betaorbustreplied

Thanks for the business :-)

Feel free to message me if you have any questions about your new script :)

Posted 7 months ago

wpskinssays

Hey there, So when it brings the pixels down in size, I take it that it brings the KB’s down as well?

Posted 7 months ago
Author

betaorbust betaorbustreplied

Yuppers.

Posted 6 months ago

YouMasays

Would the optimized version (which works now with the size flag) also be possible with the width flag?

Posted 6 months ago
Author

betaorbust betaorbustreplied

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.

Posted 6 months ago

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.

Posted 6 months ago
Author

betaorbust betaorbustreplied

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.

Posted 6 months ago

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

Posted 6 months ago

dgoujardsays

Script need GD and ImageMagic for transparency ?

Posted 5 months ago
Author

betaorbust betaorbustreplied

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.
Posted 5 months ago

rockstin316says

Purchased

How do i change the aspect ration of an image from square to rectangle .. ??

Posted 4 months ago

Ruttyjsays

Purchased

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…

Posted 3 months ago
Author

betaorbust betaorbustreplied

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.

Posted 2 months ago

$7

Prepaid customers
pay just $5 - how? Prepay Your Account With our deposit system not only will purchasing be much faster, but we’ll also take $2 off the price! Click Here to Deposit Price

You must sign in or sign up to purchase this item.

12345 ( 11 ratings )

Purchase 43 purchases

betaorbust

betaorbust

Exclusive Author Sold between 100 and 1 000 dollars Bought between 1 and 9 items United States
File Types Included
PHP
Item Attributes
Created 7 August 09
PHP Version 5.x
MySQL Version N/A
Compatible Browsers FireFox 2, FireFox 3, IE6, IE7, IE8, Safari
ThemeForest Files Included N/A
PHP Files Included PHP
PHP Framework N/A
Collections that include this item