CodeCanyon

anySize - Caching image resizer

  • Has been a member for 3-4 years
  • Bought between 500 and 999 items
  • United States
eobyone says

Is ther an admin to this script?

3 years ago
Author
betaorbust betaorbust replied

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.

3 years ago
  • Has been a member for 4-5 years
  • Bought between 1000 and 4999 items
  • United States
webguy says

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?

3 years ago
Author
betaorbust betaorbust replied

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.

3 years ago
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
rochow says

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!

3 years ago
  • Has been a member for 3-4 years
  • United Kingdom
drummerboy says

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

3 years ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 1 and 9 items
  • United States
betaorbust says
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 :)

3 years ago
  • Has been a member for 4-5 years
  • Bought between 1000 and 4999 items
  • United States
webguy says
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 ;)
3 years ago
Author
betaorbust betaorbust replied

Thanks for the business :-)

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

3 years ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
  • Canada
  • Referred between 50 and 99 users
wpskins says

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

3 years ago
Author
betaorbust betaorbust replied

Yuppers.

3 years ago
  • Has been a member for 4-5 years
  • Bought between 100 and 499 items
YouMa says

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

3 years ago
Author
betaorbust betaorbust replied

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.

3 years ago
  • Has been a member for 5-6 years
  • Bought between 10 and 49 items
  • Portugal
malomedia says

What happens with vertical images? What I need is a script that can make images with the same dimensions (horizontal and vertical) like slides.

3 years ago
Author
betaorbust betaorbust replied

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.

3 years ago
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
alexandre111 says

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

3 years ago
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
  • France
dgoujard says

Script need GD and ImageMagic for transparency ?

3 years ago
Author
betaorbust betaorbust replied

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.
3 years ago
  • Has been a member for 4-5 years
  • Exclusive Author
  • Bought between 100 and 499 items
  • Canada
rockstin316 says
Purchased

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

3 years ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 10 and 49 items
Ruttyj says
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…

2 years ago
Author
betaorbust betaorbust replied

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.

2 years ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 10 and 49 items
jomark says

Can use this instead of timthumb? I use timthumb on my wordpress site but sometimes the image thumbnails does not load properly.

2 years ago
Author
betaorbust betaorbust replied

Should be absolutely fine for that purpose. You’ll need to build the url up etc to generate the size thumbnail you’re looking for.

8 months ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 50 and 99 items
  • Italy
miniMAC says

Hi! Is possible to implement the script on wordpress? Work with external links? Thanks!

2 years ago
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
ersaurabh101 says

hi in this script if i have an png with white background, then you mean it will be converted to transparent ??

2 years ago
Author
betaorbust betaorbust replied

The code should maintain the color/alpha scheme of the image you use with it. If your input is white it will be white when it comes out.

2 years ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Bought between 50 and 99 items
leopardix says

Hi. What about external images hosted in external hosting services?

1 year ago
  • Has been a member for 0-1 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 1 and 9 items
Zakukashi says

Does this script work with php readfile? My images come from a PHP file and are echo’ed into the src of the img.

For example: img src=”<?php echo “getobj.php?image=10” ?>”

7 months ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Bought between 10 and 49 items
siteworks says
Purchased

very nice script. thank you! i have a question about the script:

the image dimensions are: 500×350px the size for “medium” ist configured as 800×800px.

so if i open the image eg. my_image.png?s=medium so the image was opened as 800×800px and was completely over-resized and very unsharpen. i really dont like this.

could i tell the script if the native dimensions from image not reaches the configured dimensions so let it be and dont resize them?

so how i did to configure the script for this?

(sorry for my english)

5 months ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Bought between 10 and 49 items
siteworks says
Purchased

it seems no support more!

5 months ago

by
by
by
by
by