Most Popular
- 2010-05-19 04:57:03
The Technologies That Run Tracking Devices - 2010-03-31 03:14:37
How To Avoid The Top 3 Mistakes Made When Buying New Servers - 2010-06-29 05:28:36
Dish Network Hd Channels Guide - 2010-06-02 06:16:42
Microsoft XP Registry Fix Tool - Fixing Windows in a Click! - 2010-08-22 08:17:00
1Z0-255 Study Materials
Operating System
-
8 March 2011, 12:03:53
How to Install Guest Additions to Windows and Linux VMs in VirtualBox
If you want to run multiple OS on your computer, maybe VirtualBox is a good choice for you to achieve it. Now I will show you how to install guest additions to Windows and Linux VMS in VirtualBox.
Note: In this example we are using version 3.0.2 on a Windows 7 (32-bit) guest OS.
Install Guest Additions for Windows
Guest Additions installs on the guest system and includes device drivers and system applications that optimize performance of the machine. Launch the guest OS in VirtualBox and click on Devices and Install Guest Additions.The AutoPlay
... -
8 March 2011, 10:03:22
Northern Virginia Replacement Windows Buyer’s Guide – Tips And Information For Vinyl Window And Door Summer Installation Around DC -
8 March 2011, 08:03:52
Resolving STOP: 0×00000019 Error Message in Windows Server 2003
Image Gallery
Recent Comments
- Baytech Webs: Web Application Development on DRC Systems – Web Application Development Company with important concept, business growth think about present and future
- to domain name on How To Make Network Marketing Opportunities Turn A Profit Online
Recent Posts
- How to Install Guest Additions to Windows and Linux VMs in VirtualBox
- Best 3D Laptops Gathering
- Northern Virginia Replacement Windows Buyer’s Guide – Tips And Information For Vinyl Window And Door Summer Installation Around DC
- Tips to Buy a Cisco Audio Conference Machine
- Resolving STOP: 0×00000019 Error Message in Windows Server 2003
You Are Here: Home » Programming » Crop Image File Size, Width & Height Using Php Script
Monday, 21 May 2012






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 (16×16, 16×8, or 8×8 pixels for color JPEGs). Lossless crops are also possible by cropping to block boundaries with specialized software, like JPEG Wizard.
I am Asif Khalyani. I am software Engineer. PHP and ajax free script download site phpasks. User can download free php script.
Most visitors also read :
Init and Initrd File Corruption Cause Data Loss in Linux
Size Matters when it comes to the CISCO – WS-C3750G-24TS-S vs the S1U
How to Fix ?Read-only file system? Error in Linux?
Linux Mint Distribution – What Are The Advantages Of Using This?
What to do when the boot.ini file is missing in Windows Server 2003