Remember Me
forgot your password?

Crop Image File Size, Width & Height Using Php Script

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.

Asif Khalyani

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

Rate this Article: 3.9 / 5 stars - 9 vote(s)
Print Email Re-Publish

Add new Comment



Captcha
0
1. omerhan (16:10, 13.12.2008)
omerhann albayraktan sevgilerlel arkadaşım bak çok süper bi script he valla bi billaha olab bişe bayılıcaksın yani sende
+1
2. npvsuresh (12:43, 30.07.2009)
i want code for Crop Image File Size, Width & Height Using Php Script.Can you please tell me briefly explain the process and executing.

  • Latest Programming Articles
  • More from Asif Khalyani

The “MySQL” Way of the World

By: Tyler Moon | 06/01/2010
Each enhancement of the again and again points out to the fact as to why the newest version of MySQL is the perfect choice for IT professionals who want to profit from the flexibility and cost savings of open source software, but not forfeit anything relating to database reliability, performance, and ease-usability features.

Some Information about psp charger

By: Benjamin Park | 06/01/2010
Today the PSP portable game console based on the authorized PSP charger made by Sony to power the battery while playing at home or on-the-go.

Professional Website Development

By: Digisha Modi | 06/01/2010
Professional website development is a specialized field where creativity and technological excellence get its best revelation. Today, almost everyone has a website, for professional as well as personal needs. Web sites development environment is very congenial to your business needs at the moment, and clients are just getting the optimum resorting to any website development firm out there. There has been a sudden surge in the growth of the number of website developers and all are really capable

The advantage of Dashboard Tools

By: chaudhary fahim | 05/01/2010
These tools are graphical displays which can be used to monitor your business.

The assistance of Silverlight Report Control

By: chaudhary fahim | 05/01/2010
Life is getting easier and easier due to the advancement in technology.

Microsoft SQL With VB Net Reporting Services

By: chaudhary fahim | 05/01/2010
SQL server with VB net reporting is a genuine report application from Microsoft.

SQL Server With VB Net Report As Most Essential Tool For The New Generation

By: chaudhary fahim | 05/01/2010
The advancement of technology has brought many changes in several fields.

Why use Silverlight Reporting Services

By: chaudhary fahim | 05/01/2010
Internet users are increasingly looking into using Silverlight reporting services.

Easy Ajax Inline Text Edit 2.0

By: Asif Khalyani | 09/09/2008 | Programming
A small piece of javascript reads al SPAN tags, checks if it has class="editText" and a id=. If that is true, it adds a onclick function. That onclick function will create a textfield or input (depending on the size of the editable text). Someone has the ability to edit the field. When the text field is blurred, it will read the contents, and starts a XMLHttpRequest and ‘sends’ the content + fieldname + any set vars to an update file.

Crop Image File Size, Width & Height Using Php Script

By: Asif Khalyani | 03/07/2008 | Programming
Cropping and resizing your images for the Web is a common technique for creating smaller thumbnail images that download quickly.

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.

Submit Your Articles Free: Signup
Article Categories




Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2008 Free Articles by ArticlesBase.com, All rights reserved. (0.09, 1, w2)