Zach Krasner Times - Daily Digital Design & Development Newspaper

Zach Krasner (ZK) Times is a daily source of web design and development articles, resources, and inspiration. It is updated twenty-four seven bringing you the latest in top-quality articles to further your mastery in the art of website production.

Zach Zach Krasner Krasner Zachary Krasner best web design business development business news creative web design design design companies design company design development design services designers designing designs development development analysis development methodologies ecommerce website design flash design flash web design free web design graphic design graphic design best graphic design companies graphic design company graphic design portfolios graphic design services graphic design website graphic development graphic web design logo design news newspaper product development professional development professional web design software design system development web design web design and development web design companies web design company web design cool web design development web design examples web design firms web design ideas web design layout web design software web design tips web design tools web design tutorial web development web page design web page development web site design web site development webpage design webpage development website design website design prices website development websites design websites development Zach Krasner Zach Krasner zach krasner Zachary Krasner

Zach. Krasner. Zach Krasner. Krasner. Zach. Design News. Development News. Design and Development. Design articles. Design tutorials. Development articles. Development tutorials. Web Development News. Web Design. Website News. Website Development. Graphic Design. Graphics. Photoshop News. Photoshop Design. Design News and Development News.

Zach. Krasner. Zach Krasner. Krasner. Zach. Design News. Development News. Design and Development. Design articles. Design tutorials. Development articles. Development tutorials. Web Development News. Web Design. Website News. Website Development. Graphic Design. Graphics. Photoshop News. Photoshop Design. Design News and Development News.

Zach. Krasner. Zach Krasner. Krasner. Zach. Design News. Development News. Design and Development. Design articles. Design tutorials. Development articles. Development tutorials. Web Development News. Web Design. Website News. Website Development. Graphic Design. Graphics. Photoshop News. Photoshop Design. Design News and Development News.

Zach Krasner ZK Sticktacular Productions sticktacular.com www.sticktacular.com portfolio edition profolio myprofolio newspaper design development news magazine style css websites flash art images photoshop articles inspiration web design news web development news live daily updates 24/7 24 / 7 bringing you updated design and development and inspirational news

Automatically Get Width & Height of An Image or Flash

If you are working with file uploads, or if you simply need the width and height of an image/flash file, then this magical function in PHP is a must use: getimagesize

 

<?

//Here's our file. It's a flash animation with the name of animation.swf
$file = "Files/animation.swf";

//To get the height and width automatically, we use the "getimagesize" function built into PHP
//We use the list function to get the width and height values from the getimagesize function. Width goes first, height second.
list($width, $height) = getimagesize($file);

//Display the width and height
echo "Width = $width and Height = $height";

?>

 

This very useful function can be used to make very simple uploaders. It also can be used to dynamically resize images. Here's how we'll resize an image to half of its size, no matter what the size is:

 

<?

//Our image file. (It could be a flash file if you wanted, but for this example, we'll use an image)
$file = "Images/Big/20303991/image.jpg";

//Get width and height of the image.
list($width, $height) = getimagesize($file);

//Now make the width and height half their values
$width = $width/2;
$height = $height/2;

//Now display the image
echo "<img src='$file' width='$width' height='$height' />";

?>

 

I hope you've learned something with this tutorial. If you have any questions or comments at all, feel free to post them in the forums.

Automatically Get Width & Height of An Image or Flash

If you are working with file uploads, or if you simply need the width and height of an image/flash file, then this magical function in PHP is a must use: getimagesize

 

<?

//Here's our file. It's a flash animation with the name of animation.swf
$file = "Files/animation.swf";

//To get the height and width automatically, we use the "getimagesize" function built into PHP
//We use the list function to get the width and height values from the getimagesize function. Width goes first, height second.
list($width, $height) = getimagesize($file);

//Display the width and height
echo "Width = $width and Height = $height";

?>

 

This very useful function can be used to make very simple uploaders. It also can be used to dynamically resize images. Here's how we'll resize an image to half of its size, no matter what the size is:

 

<?

//Our image file. (It could be a flash file if you wanted, but for this example, we'll use an image)
$file = "Images/Big/20303991/image.jpg";

//Get width and height of the image.
list($width, $height) = getimagesize($file);

//Now make the width and height half their values
$width = $width/2;
$height = $height/2;

//Now display the image
echo "<img src='$file' width='$width' height='$height' />";

?>

 

I hope you've learned something with this tutorial. If you have any questions or comments at all, feel free to post them in the forums.

Automatically Get Width & Height of An Image or Flash

If you are working with file uploads, or if you simply need the width and height of an image/flash file, then this magical function in PHP is a must use: getimagesize

 

<?

//Here's our file. It's a flash animation with the name of animation.swf
$file = "Files/animation.swf";

//To get the height and width automatically, we use the "getimagesize" function built into PHP
//We use the list function to get the width and height values from the getimagesize function. Width goes first, height second.
list($width, $height) = getimagesize($file);

//Display the width and height
echo "Width = $width and Height = $height";

?>

 

This very useful function can be used to make very simple uploaders. It also can be used to dynamically resize images. Here's how we'll resize an image to half of its size, no matter what the size is:

 

<?

//Our image file. (It could be a flash file if you wanted, but for this example, we'll use an image)
$file = "Images/Big/20303991/image.jpg";

//Get width and height of the image.
list($width, $height) = getimagesize($file);

//Now make the width and height half their values
$width = $width/2;
$height = $height/2;

//Now display the image
echo "<img src='$file' width='$width' height='$height' />";

?>

 

I hope you've learned something with this tutorial. If you have any questions or comments at all, feel free to post them in the forums.

Automatically Get Width & Height of An Image or Flash

If you are working with file uploads, or if you simply need the width and height of an image/flash file, then this magical function in PHP is a must use: getimagesize

 

<?

//Here's our file. It's a flash animation with the name of animation.swf
$file = "Files/animation.swf";

//To get the height and width automatically, we use the "getimagesize" function built into PHP
//We use the list function to get the width and height values from the getimagesize function. Width goes first, height second.
list($width, $height) = getimagesize($file);

//Display the width and height
echo "Width = $width and Height = $height";

?>

 

This very useful function can be used to make very simple uploaders. It also can be used to dynamically resize images. Here's how we'll resize an image to half of its size, no matter what the size is:

 

<?

//Our image file. (It could be a flash file if you wanted, but for this example, we'll use an image)
$file = "Images/Big/20303991/image.jpg";

//Get width and height of the image.
list($width, $height) = getimagesize($file);

//Now make the width and height half their values
$width = $width/2;
$height = $height/2;

//Now display the image
echo "<img src='$file' width='$width' height='$height' />";

?>

 

I hope you've learned something with this tutorial. If you have any questions or comments at all, feel free to post them in the forums.

<?

//Here's our file. It's a flash animation with the name of animation.swf
$file = "Files/animation.swf";

//To get the height and width automatically, we use the "getimagesize" function built into PHP
//We use the list function to get the width and height values from the getimagesize function. Width goes first, height second.
list($width, $height) = getimagesize($file);

//Display the width and height
echo "Width = $width and Height = $height";

?>

 

This very useful function can be used to make very simple uploaders. It also can be used to dynamically resize images. Here's how we'll resize an image to half of its size, no matter what the size is:

 

<?

//Our image file. (It could be a flash file if you wanted, but for this example, we'll use an image)
$file = "Images/Big/20303991/image.jpg";

//Get width and height of the image.
list($width, $height) = getimagesize($file);

//Now make the width and height half their values
$width = $width/2;
$height = $height/2;

//Now display the image
echo "<img src='$file' width='$width' height='$height' />";

?>

 

I hope you've learned something with this tutorial. If you have any questions or comments at all, feel free to post them in the forums.

" />

Zach Krasner Times - Daily Digital Design & Development Newspaper

Zach Krasner (ZK) Times is a daily source of web design and development articles, resources, and inspiration. It is updated twenty-four seven bringing you the latest in top-quality articles to further your mastery in the art of website production.

Zach Krasner ZK Sticktacular Productions sticktacular.com www.sticktacular.com portfolio edition profolio myprofolio newspaper design development news magazine style css websites flash art images photoshop articles inspiration web design news web development news live daily updates 24/7 24 / 7 bringing you updated design and development and inspirational news