Bug 787346

Summary: The command "import x.tif" or "import x.tiff" produces postscript output instead of tiff format
Product: [Fedora] Fedora Reporter: Joachim Backes <joachim.backes>
Component: ImageMagickAssignee: Pavel Alexeev <pahan>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: nmurray, pahan
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-05 10:24:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Joachim Backes 2012-02-04 09:45:59 UTC
Description of problem:
For importing a screen part to a tif file nemed x.tif I use the command "import x.tif". But after having imported, the file is not of type tiff but of type ps.

Version-Release number of selected component (if applicable):
rpm -q ImageMagick
ImageMagick-6.7.0.10-4.fc16.x86_64


How reproducible:
always

Steps to Reproduce:
ls -l x.tif
ls: cannot access x.tif: No such file or directory
backes@eule [tmp]: import x.tif
backes@eule [tmp]: file x.tif
x.tif: PostScript document text conforming DSC level 3.0, Level 1

  
Actual results:
See description

Expected results:


Additional info:

The file's x.tif beginning part after import:
-------------------------------------------------
%!PS-Adobe-3.0
%%Creator: (ImageMagick)
%%Title: (x.tif)
%%CreationDate: (2012-02-04T10:42:09+01:00)
%%BoundingBox: -0 -0 941 449
%%HiResBoundingBox: 0 0 941 449
%%DocumentData: Clean7Bit
%%LanguageLevel: 1
%%Orientation: Portrait
%%PageOrder: Ascend
%%Pages: 1
%%EndComments

%%BeginDefaults
%%EndDefaults

%%BeginProlog
%
% Display a color image.  The image is displayed in color on
% Postscript viewers or printers that support color, otherwise
% it is displayed as grayscale.
%
-----------------------------------------------------------

Comment 1 Pavel Alexeev 2012-02-04 19:52:45 UTC
Thank you for your bugreport and willing make free software better!

I can't reproduce that.
$import file.tiff
$ file file.tiff 
file.tiff: TIFF image data, little-endian

Please could you please check fresh version from rawhide?

Comment 2 Joachim Backes 2012-02-05 07:08:53 UTC
(In reply to comment #1)
> Thank you for your bugreport and willing make free software better!
> 
> I can't reproduce that.
> $import file.tiff
> $ file file.tiff 
> file.tiff: TIFF image data, little-endian
> 
> Please could you please check fresh version from rawhide?

Sorry, was my mistake: using "import x.tiff" instead "import x.tif" will solve my problem.

Please excuse for trouble.

Comment 3 Joachim Backes 2012-02-05 08:04:20 UTC
Remark:

Reading the page http://www.imagemagick.org/script/formats.php, especially the description for the tiff tag, one could assume that .tiff and .tif are equivalent for identifying a file type. This was the reason for my "mistake" :-)

Comment 4 Pavel Alexeev 2012-02-05 10:24:39 UTC
TIFF	RW	Tagged Image File Format	Also known as TIF.

Nothing about "tif" also may be used as tag format.