Welcome To Snipplr
Everyone's Recent Snippets Tagged resize
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Input: .jpg images of current directory\r\n\r\nOutput: the thumbnails will be generated in \'thumb\' folder
0
697
posted 14 years ago by abhiomkar
Un ejemplo de como hacer un resice del formulario conjunto a todos los controles.
0
1243
posted 14 years ago by keidash
Ever have to make a swf that needs to change height? Want to use the browser's scrollbar instead of having to create one in flash?
0
637
posted 14 years ago by cessnajumpin
Usage:
<code>
var newDimensions:Object = resize(800,600,320,200);
</code>
This can be adapted to pretty much any language...
1
896
posted 14 years ago by kaptnkill
Remove the doctype and any xml namespace declarations from your header and quirks mode will take care of the rendering, additionally this fix is not compatible with IE8 rendering so we need to put IE8 in emulation mode
1
923
posted 14 years ago by jaff
Creating thumbnails of the images is required many a times, this code will be useful to know about the logic of thumbnail generation.
0
907
posted 15 years ago by paulgrenwood
I needed a quick way to resize and save to a folder lots of images. Imagemagick is magic indeed!
1
1108
posted 15 years ago by zerolab
* Resized images are generated into TARGET_DIR.
* Change the resolution (800x800 in my example) and quality (80) as you want.
* The command keeps the image's proportion. 1600x1200 will be converted into 800x600, 1200x1600 into 600x800.
_Notice_:...
2
1069
posted 15 years ago by Dorgendubal
https://www.chrisjmendez.com/2008/10/18/jquery-detecting-a-browser-resize/
8
1381
posted 16 years ago by chrisaiv
To use the resize function you must pass in the forced width, forced height, source image, and destination image. The function then uses the GD2 library functions to read the source image's size. It will then calculate the new image's size based off...
3
1009
posted 16 years ago by Jenhale
Post a stripped down version of the page if you can. One that shows exactly how the iframe fits into the structure of the page.
The solution I settled on works like this:
The parent page has a javascript function like this:
function insertIt()...
0
1070
posted 16 years ago by jamesming