.tiff files not displaying properly

1,436 views
Skip to first unread message

Chuck

unread,
Jul 12, 2010, 11:32:59 AM7/12/10
to fancybox
we cannot get .tiff files to display properly. the image is rendered
as an inline doc with weird characters. however, the tiff file works
just fine if we download it from the site or preview it in the
browser, so it has something to do with the fancybox preview. does
anyone know about this or have a fix?

Chuck

unread,
Jul 13, 2010, 12:20:23 PM7/13/10
to fancybox
Has anyone else encountered this? Is there a solution available?

JFK

unread,
Jul 13, 2010, 10:02:41 PM7/13/10
to fancybox
the ability of rendering TIFF files in a browser relies on the proper
plug-in installed on your browser.
In my case Quicktime is in charge of opening any TIFF file on FF so I
guess you have to tell fancybox what plug-in it should use or cheat it
using the <embed> tag ...
something like this:

<a class="fancytif" href="images/01.tif" title="title">open tiff file</
a>

<script type="text/javascript">
$(document).ready(function() {
$(".fancytif").click(function() {
$.fancybox({
// set your own size
'content':'<embed src="'+this.href+'" type="video/quicktime"
style="width:300px; height: 200px;" />'
});
return false;
});
});
</script>

just notice that the 'content' option should be all in a single line
but it may appear broken here (with and unwanted CR)

Chuck

unread,
Jul 14, 2010, 12:53:10 PM7/14/10
to fancybox
This is for a dynamic site, and if we have to specify a size, that
defeats the purpose. I don't see why the TIFF shows up correctly
inside the browser window when i link directly to the file, but not in
fancybox. I've tested both mac and windows and safari, ff, and IE.
same issue in all browsers.

JFK

unread,
Jul 14, 2010, 1:30:30 PM7/14/10
to fancybox
again, TIFF files are not supported by most browsers unless you have
installed a proper plug-in to handle them .... is like trying to open
PDF files in your browser, you may be requested to either download
them or install the reader plug-in. Learn more here:
http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support

fancybox is not a browser window therefore it doesn't necessarily
handles plug-ins as your browsers do. If you can see your TIFF files
while linking them directly is because you have the a plugin installed
to render them properly.

Don't get me wrong but unless you have a good reason of using TIFF
files within your web pages I would rather convert them into formats
that are widely supported by most browsers (JPG/PNG/GIF). Another
thing to consider is that you have no control over the visitor's
browsers and they may not see what you are expecting them to see ....
and users get annoyed when they are prompted to download or install
something in order to see an image

Chuck

unread,
Jul 14, 2010, 1:42:51 PM7/14/10
to fancybox
I see. OK. We have an app where users upload files and we are trying
fancybox to preview some image files. So if a user uploads a tiff,
there's not much we can do about that. We've just removed the preview
option on tiff's and I think we'll just keep it like that since they
seem to be a real problem.

Thanks for the info.

On Jul 14, 10:30 am, JFK <jfk.d...@gmail.com> wrote:
> again, TIFF files are not supported by most browsers unless you have
> installed a proper plug-in to handle them .... is like trying to open
> PDF files in your browser, you may be requested to either download
> them or install the reader plug-in. Learn more here:http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_...
Reply all
Reply to author
Forward
0 new messages