Showing posts with label Firefox. Show all posts
Showing posts with label Firefox. Show all posts

Saturday, October 8, 2011

Displaying tiff image in Browsers

As Tiff image is requires Quick Time Plugin, So it is Working well with Safari browser like as normal png or jpg image, But in firefox or IE or Chrome Does not support it directly. They need Quick Time Plugin to be install on System then We can embade them as

<embed width=75 height=75 src="image.tif" type="image/tiff" negative=yes>

Other Way to display is to convert image in PNG/JPG format using Imagick, in php

<?php
try
{
// Saving every page of a <strong>TIFF</strong> separately as a JPG thumbnail
$images = new Imagick("testing.tif");
foreach($images as $i=>$image) {
// Providing 0 forces thumbnail Image <strong>to</strong> maintain aspect ratio
$image->thumbnailImage(768,0);
$image->writeImage("page".$i.".jpg");
echo "<img src='page$i.jpg' alt='images' ></img>";
}
$images->clear();
}
catch(Exception $e)
{
echo $e->getMessage();
}
?>

Thursday, September 15, 2011

How to reset your Firefox default search engine or modify it:


  • Open Firefox browser

  • Type about:config in location bar and press enter

  • Search for configuration key keyword.URL and select it

  • Right click on the configuration key keyword.URL and choose Reset from the shortcut menu.
    If clicking on “reset” nothing happens just write this string:
    http://www.google.com/webhp?hl=en#hl=en&cp=4&gs_id=i&xhr=t&q=

    Otherwise if you like Google’s I’m Feeling Lucky feature you have to write this line:

    http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=