Inserting TIFF images -selected file is not an image

Inserting TIFF images -selected file is not an image

by Jim Earnshaw -
Number of replies: 7

When trying to insert a .tiff image I receive the following:

"Selected File is not an image. Please select an image."

I thought maybe it wanted a different extention so I tried .tif and .tiff. Then I thought maybe Adobe Fireworks was saving out a .tif weird so I tried it with mspaint .tif too and no luck.  It must be something obvious because I can't seem to find any other references to this problem.  (I also tried it in firefox vs. explorer) The .jpg inserts just fine.

Thanks for any suggestions.

Average of ratings: -
In reply to Jim Earnshaw

Re: Inserting TIFF images -selected file is not an image

by Miriam R -
I've also been having difficulty inserting .tiff images.

My analysis is that Moodle doesn't recognise .tiff as an image format for whatever reason. Some sites don't.

I've posted a Feature Request on Tracker: http://tracker.moodle.org/browse/MDL-15891 .
In reply to Miriam R

Re: Inserting TIFF images -selected file is not an image

by Mauno Korpelainen -

It's not only a problem of moodle or editor - TIFF is not at all usefull web image format. If you want to display TIFF images as part of the web pages, convert them to a JPEG (photos) or a GIF (drawings). Safari is the only modern browser that can display TIFF without extra plugins like Alternatiff.

http://en.wikipedia.org/wiki/Comparison_of_Web_browsers#Image_format_support

http://www.alternatiff.com/howtoembed.html

Average of ratings: Useful (1)
In reply to Miriam R

Re: Inserting TIFF images -selected file is not an image

by Marc Grober -
However, while Moodle doesn't recognize tif by default as a display medium (see here for a discussion as to how to start with adding MIME types http://moodle.org/mod/forum/discuss.php?d=32631 ) , you could insert the file and as Mauno suggests require users to employ a help app such as Quicktime (Mauno I think is still a Vista man , so has to be forgiven this wink ). But, he is absolutely correct in suggesting you use another format..... I just wanted to follow up as an oppotunity to revisit the MIME typing in filelib.php



In reply to Marc Grober

Re: Inserting TIFF images -selected file is not an image

by Mauno Korpelainen -

Well...I DO have Quicktime installed but it's not my default application to open TIFF on Vista (Microsoft Office Document Imaging is) wink

In fact I could embed tiff image for example with tinymce (moodle 2.0 editor without full XHTML rule set) and media plugin with quicktime addon with tags

<object classid="clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" height="100" width="100">
<param name="src" value="http://mytestserverpath/file.php/2/Bottle.tif" />
</object>

that worked ok in IE...but not in FF etc.

Thank you Marc from that PNG too smile

EDIT: ...and the easiest way to use TIFF (if people want to use them) might be uploading them as resources or attachments like you did Marc...then people can open TIFF with what ever (default) plugin or application they want to use.

In reply to Mauno Korpelainen

Re: Inserting TIFF images -selected file is not an image

by Marc Grober -
Mauno,

You make this community a positive joy!

Thanks

In reply to Jim Earnshaw

Re: Inserting TIFF images -selected file is not an image

by fdsfd fdsfd -

i first display tiff or other kind of document with a .net tiff application, and then use the following sample codes to insert tiff image,

// <summary>
/// Add an image to TIFFPage
/// </summary>
/// <param name="page"></param>
/// <param name="img"></param>
/// <param name="x"></param>
/// <param name="y"></param>
public void AddImageToPage(TIFFPage page, REImage img, float x, float y)
{
page.AddImage(img, x, y);
}
may it helps you.