Index of /resizer/

NameLast ModifiedSize
UpParent Directory
Directorypicscache2023-04-27 09:34-
FileCURRENTVERSION2023-04-27 09:34 1k
Fileerror_log2025-11-17 16:13 1k
[TXT]resize.php2023-04-27 09:34 2k
[TXT]resizer.php2023-04-27 09:34 9k
Filestd.encryption.class.inc2023-04-27 09:34 10k
Resizer resizes (and crops) images on the fly. Usage: resizer.php?url=<imageurl>&size=<size> where size: [(x0,y0,xs,ys)]<xd>x|x<yd>|<xd>x<yd>[c[<crop>]] e.g. 100x, x200, 100x50, 100x200c50, 100x200c e.g. resizer.php?url=http://www.google.com/intl/en_ALL/images/logo.gif&size=200x200 resizer.php?url=http://www.google.com/intl/en_ALL/images/logo.gif&size=100x100c resizer.php?url=http://www.google.com/intl/en_ALL/images/logo.gif&size=150x100c50 resizer.php?url=http://www.google.com/intl/en_ALL/images/logo.gif&size=200x100c0 resizer.php?url=http://www.google.com/intl/en_ALL/images/logo.gif&size=100x100c100 with source image pre-crop in parentheses resize.php?url=http://www.google.com/intl/en_ALL/images/logo.gif&size=(0,0,70,80)70x80 If you want, you can encrypt url & size, resize.php decrypts url & size using A J Marston reversible password encryption routine. Simply set define ('CRYPT','1'); and provide encrypted parameters to resize.php Encryption key is function of file mtime, so it is unique. You must encrypt parameters with the same key used to decryption. The key is the string "UNIQUE-" followed file mtime of resize.php script. ..... $resizepath= realpath(dirname(__FILE__).'/resize.php'); $zkey="UNIQUE-".filemtime($resizepath); $crypt = new encryption_class; $dimension_encoded = urlencode ($crypt->encrypt($zkey,'46x60c')); $imgurl_encoded = urlencode ($crypt->encrypt($zkey,'http://someimageurl')); .... $resized_url="http://mysite/".resize.php?size=".$dimension_encoded."&url=".$imgurl_encoded; <img src="'.$resized_url.'"/> ... Legal Stuff Copyright (C) Fabrizio Zellini Distributed under the GNU General Public Licence
Proudly Served by LiteSpeed Web Server at www.centropastorale.chiesadomestica.org Port 443