ArticlesBase.com - Free Articles Directory
Free Online Articles Directory
06.09.2008 Sign In Register Hello Guest
Email:
Password:
Remember Me 
forgot your password?


Crop Image File Size, Width & Height Using Php Script

Author: Asif Khalyani Author Ranking Bronze | Posted: 03-07-2008 | Comments: 0 | Views: 472 | Rating:  (744) Article Popularity - Silver (?) Got a Question? Ask.
Sign Up Now!

Crop Images Contextually

Crop images contextually for faster downloads and higher impact. By cropping maximally and resizing you can convey meaning without slowing down your web pages.

However, we've seen many sites that either use HTML's width and height attributes to resize larger images, or minimally crop and resize images to lose vital information. A better way to create images optimized for the Web is to crop them contextually.

Contextually Cropping


What is cropping contextually? Many times digital images shot for Web use have a border of useless space around the object(s) of interest. Rather than crop to just the film or chip's border, crop contextually down to the minimum dimensions that still convey the meaning or context of your image.

Note how the author is now more recognizable in the cropped version (behind the sunscreen) and the lettering is larger and more legible. Most importantly, the image has more impact, with the subject taking up more of the frame. This cropped image could be shown with a smaller dimension, saving file size.

Resize to a Smaller Thumbnail

Once you've got your image maximally cropped, resize and sharpen it to create a smaller thumbnail image. To give the reader more detail, you can provide a larger version (cropped or uncropped) of the image linked to that thumbnail.

This two-step process of cropping maximally and resizing is what Jakob Nielsen calls "relevance-enhanced image reduction." Nielsen writes that by combining cropping and scaling you can "preserve both content and detail, even at very small sizes." (Nielsen 2000)

Extreme Closeup for a Sneak Preview

Some high fashion sites actually use only the important part of an image as a thumbnail. For example, just the shoulder or neckline of a style - click and you get the full shots with details. This "image tease" technique can add an artistic feel to a site. Let's get up close and personal with our intrepid traveler.

Extreme Cropping through Rearrangement

In extreme cases you could rearrange the target objects and reshoot, or move them closer together in your favorite image editing program. The idea is to use the smallest possible image that still conveys the information you want to display. You may need to bump up font sizes to withstand more extreme image reductions.

JPEG Cropping Caution

Be careful when resaving JPEG images. Reoptimizing an existing JPEG can compound compression artifacts. It is possible to transform JPEGs losslessly, however. Lossless transformations (like 90-degree rotations and flips) require the dimensions of the JPEG to be a multiple of the block size (16x16, 16x8, or 8x8 pixels for color JPEGs). Lossless crops are also possible by cropping to block boundaries with specialized software, like JPEG Wizard.

Rate this Article: Current: 4.3 / 5 stars - 3 vote(s).

Article Source: http://www.articlesbase.com/programming-articles/crop-image-file-size-width-height-using-php-script-471473.html

Print this Article Print article   Email to a Friend Send to friend   Publish this Article on your Website Publish this Article   Send Author Feedback Author feedback  
About the Author:

I am Asif Khalyani. I am software Engineer. PHP and ajax free script download site phpasks. User can download free php script.

Submitting articles has become one of the most popular means of generating quality backlinks and targeted traffic to your website. Join us today - It's Free!

Article Comments

Comment on this article Comment on this article
Your Name
Your Email:
Comment Body
Enter Validation Code: Captcha


Related Articles

Ajax Form Validation and Thread-safe Ajax
By: Asif Khalyani | 03/07/2008 | Programming
This is the PHP and AJAX form validation application you can create AJAX and PHP: Building Responsive Web Applications.

Upload Image Without Refresh Page - Asynchronous Image File Upload Without Ajax
By: Asif Khalyani | 23/06/2008 | Programming
I suppose it is neccessary to bring a little bad news to Ajax at this point, it is not possible to process a file upload through the XMLHtrtpRequest Object. The reason of this is that javascript has no access to your computer's file system.


By: | 31/12/1969 |

Rich Internet Applications (ria)
By: Max J. Pucher | 22/03/2008 | Information Technology
The all-new hype is Rich Internet Applications (RIA). Adobe is touting Flash FLEX functionality as the next big thing in RIA. Papyrus EYE makes the development of completely dynamic user frontends in the browser much easier than Flex.

Sorting Gridview Data With Ajax
By: Ajax Tutorials | 12/08/2008 | Programming
In this tutorial, we will look at how we can use the GridView Control to display data Asynchronously, and how we can sort data in real-time, using AJAX. We will simply create a sample database, but you can use your own if you have one in mind, and we will add a button and a GridView to the ASPX page. Then we will display the data upon button click and allow sorting in real-time.

The Web 2.0 Effect: the Characteristics of a Web2.0 Website
By: M.Markell | 05/02/2007 | Networks
The term web2.0 was originally presented by O'Reilly Media (A well known media company publishing books and websites on various computer technology topics). It's a term that refers to a new generation of websites (social networking websites, wiki-based websites etc). These websites take advantage of web application technologies and give web users the ability to collaborate and share their experiences, views, opinions and interests while they surf the web.

Finding a Website for Hot Source of CSS Information?
By: Walloon Brabant | 09/04/2008 | SEO
For web developers, getting a web development platform that would be catering a new web experience is their dream. Before, websites are designed in an old fashion way of text, images and plug-ins. As the internet experience evolved, it becomes more complicated that the usual HTML program could not cater it anymore. While plug-ins like Flash objects have redefined the web experience, nevertheless, has also its own downfall and that is readability.

Nesting Updatepanels in Asp.net 3.5
By: Ajax Tutorials | 12/08/2008 | Programming
In this tutorial, we will look at how we can nest UpdatePanels. You can nest as many UpdatePanels as you want- there is no limit. In this example, we will be creating two UpdatePanels and nesting one in the other. One will display a person from a database, that is selected from a DropDownMenu, the nested UpdatePanel will display the current time, so we can see when it is updated.

Got a Question? Ask.

Ask the community a question about this article:

Frequently Asked Questions

Ajax Hot Water Boilers
By: ralphepinc | 01-07-2008
I would appreciate any information about fires caused by,or connected with, Ajax hot water boilers.

Unbookmarking websites
By: bovik0604 | 23-04-2008
how do I unbookmark a website?

How can i send a mail using javascript.
By: Rhizwan | 15-04-2008
how can i send a mail using javascript.

How can I convert float to String in javascript ...
By: MBW1185 | 10-04-2008
How can I convert float to String in javascript ?? Need ASAP

How can I access last navigated element's id in ...
By: sudahar_selvaraj | 04-04-2008
how can I access last navigated element's id in javascript?

Chat rooms and forums - which sites?
By: yedda08 | 03-04-2008
what are some good online forums or chat rooms for 15-18 year olds? Where do people go and what are people interested in/talking about?

Q&A Powered by:
Powered by Yedda 

Latest Programming Articles

Sas Programming Course - Proposal
By: Chris Helwig | 03/09/2008
This project is designed as an independent study CS 999 course in SAS programming arranged for the fall 2008 semester at UW-M.

Why Outsourcing to Vietnam is a Sound Business Decision
By: Daniel Jowssey | 01/09/2008
1. Overview This document lays out the business case for meeting your company’s software development needs by outsourcing to Vietnam. It first outlines factors to consider in deciding which offshore locations to outsource to. Then it considers those factors one at a time for Vietnam, concluding that the country is a promising offshore location for outsourced software development and for business’ other IT needs.

How to Choose the Best Software Development Company
By: Daniel Jowssey | 29/08/2008
Are you interested in finding a software development company? Have you constantly tried to locate an expert in software development and none of the existing companies seem to measure up to your expectations? If your answer to either of these two questions is affirmative, then perhaps you might be interested in reading more on the subject. In this article, you can discover plenty of tips on choosing the right software development company and what should you expect.

Seven Tips for Effective Task Management
By: Daniel Jowssey | 28/08/2008
1. Daily Task Planning At the end of the work day, take the time to review the day's accomplishments, cross them off of your list and plan your work for the next day. Central Desktop allows teams to keep all of the tasks for a particular project in a single location, giving all of the team members’ visibility into each other’s task list, so there is no reason to wonder who is doing what.

Programming Computer Numerical Controlled Machines With G-codes
By: Gargi Nath | 27/08/2008
Ever since the industrial revolution started, the demand to create precise instruments and products is an important factor in large scale manufacturing. Belts, screws, Drills and all movable parts needed to create other products in the assembly line must all be exact and compatible, thus extra care must be taken in order to ensure that all moving parts match perfectly. Computer Numerical Controlled programming has become an extremely important part of this process.

Encryption Using Rsa Algorithm in Java
By: Debadatta Mishra | 23/08/2008
This article provides a solution for RSA encryption and decryption in java, which is limited to 117 bytes.

Symmetric Cryptography in Java
By: Debadatta Mishra | 23/08/2008
This article gives an insight into the symmetric cryptography in java. It basically provides you the use of DES algorithm.

Sab B1, Netsuite Solutions Provider
By: Sophia | 20/08/2008
Tandoninfo is a leading SAP Business One Solution Provider. We provide SAP Business One (B1) Implementation, customization & support. We are one of the Netsuite solutions providers in California (CA). Tandoninfo provides Custom Software development services such as application development, project management, workflow solutions, ERP solutions & quality testing. TIS is leading SAP Business one implementation services provider based in USA and India.

More from Asif Khalyani

Ajax Form Validation and Thread-safe Ajax
By: Asif Khalyani | 03/07/2008 | Programming
This is the PHP and AJAX form validation application you can create AJAX and PHP: Building Responsive Web Applications.

Upload Image Without Refresh Page - Asynchronous Image File Upload Without Ajax
By: Asif Khalyani | 23/06/2008 | Programming
I suppose it is neccessary to bring a little bad news to Ajax at this point, it is not possible to process a file upload through the XMLHtrtpRequest Object. The reason of this is that javascript has no access to your computer's file system.

Article Categories






Give Feedback

Sign up for our email newsletter

Receive updates, enter your email below