The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
A image resizer script im working on (Not a hack)
Tell me what you think of this image resizer script im working on
Im you open to any ideas or suggestions. The image also works within the <img tags Script: http://slynderdale.darktechgameing.com/image.php That shows the example image. The Varibles: image -The image name, absoulute path or url scale -Scales the image useing % so scale=50 is 50% height -The height you wanna resize the image to width -The width you wanna resize the image to Note: Height and Width has more priotity then scale, so if you set the height and width, scale wont be use, and if you set the width/height and scale, the image will be reized to the width/height you put and the other will be scaled to what you put, if you dont put the width, height or scale, it will show the normal image without an resizing. Also i wanna note, that my version of php doesnt support if resizing of gif images but there a link to a patch at www.php.net/imagegif that adds gif support, it currently supports jpegs and png's. URL Examples: Heres an example of using a filename/absoulute path url: http://slynderdale.darktechgameing.c...e=php_logo.jpg Heres an example of using a url: http://slynderdale.darktechgameing.c...m/php_logo.jpg Heres an example of using a url without http://: http://slynderdale.darktechgameing.c...m/php_logo.jpg if you dont add http:// it will automaticly add it for you unless its a filename/absoulute path Scale Examples: scaling at 100%: http://slynderdale.darktechgameing.c....jpg&scale=100 scaling at 50%: http://slynderdale.darktechgameing.c...o.jpg&scale=50 scaling at 200%: http://slynderdale.darktechgameing.c....jpg&scale=200 Width/Height examples: width and height =100 pixels: http://slynderdale.darktechgameing.c...100&height=100 width =200 pixels and height =300 pixels: http://slynderdale.darktechgameing.c...200&height=300 Scaling and Width/Height examples: Scales the height by 50% and set the width to 100 pixels: http://slynderdale.darktechgameing.c...e=50&width=100 Scales the width by 200% and set the height to 50 pixels: http://slynderdale.darktechgameing.c...=200&height=50 Heres a example how it shows that width and height has a higher priority, if both are set and you set scale, it goes with the width and height, not the scale: http://slynderdale.darktechgameing.c...ht=50&width=50 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|