Hi,
In updating my book for v0.46 I have been reviewing file import. I am trying to learn more about some of the formats listed in the file import dialog (File->Import) under the drop-down menu. Are all the file types listed really supported in Inkscape? How is the list of file types generated? I can't seem to find it in the code. In particular, I would like to know more about Inkscape's support for these file types (it is not even clear to me what format some of them are suppose to be):
.ggr (Gimp Gradient) .outline (Text Outline File) .tga (Targa) .ico .cur .wbmp .pcx .ras .xbm (X-Bitmap) .ani
Thanks,
Tav
On Sun, May 4, 2008 at 1:50 PM, Tavmjong Bah wrote:
.ggr (Gimp Gradient)
Drag and drop a .ggr file to an Inkscape document and look at the list of gradients ;-)
.outline (Text Outline File)
No idea either. This is outline2svg.inx
.tga (Targa)
An old bitmap file format once popular, nor forgotten
.ico
File format for application icons in Windows. Never tested its support.
.cur
File format for cursors in Windows. Never tested its support.
.wbmp
Not quite sure
.pcx
Same as tga. Never tested its support.
.ras
Same as tga, just not as popular (at least, on Windows :) Never tested its support.
.xbm (X-Bitmap)
An old rather UNIX specific file format. Never tested its support.
.ani
Animated cursors file format for WIndows. Never tested its support.
Alexandre
hey the tga file format doesn't feel old to me I remember it was used in serious sam what I'd say about its advantages is that : colors are up to 32 bits, there's an alpha channel and things are written uncompressed. It could be comparable to BMP with an alpha channel. the fact of being uncompressed helps loading time for video games and other apps that load bitmap files on the fly.
you should look up those formats on wikipedia or on the internet very simply, to get more info. http://en.wikipedia.org/wiki/Truevision_TGA look in the list, very modern games such as Quake IV still use this format !
jonathan
On Sun, May 4, 2008 at 12:08 PM, Alexandre Prokoudine < alexandre.prokoudine@...400...> wrote:
On Sun, May 4, 2008 at 1:50 PM, Tavmjong Bah wrote:
.ggr (Gimp Gradient)
Drag and drop a .ggr file to an Inkscape document and look at the list of gradients ;-)
.outline (Text Outline File)
No idea either. This is outline2svg.inx
.tga (Targa)
An old bitmap file format once popular, nor forgotten
.ico
File format for application icons in Windows. Never tested its support.
.cur
File format for cursors in Windows. Never tested its support.
.wbmp
Not quite sure
.pcx
Same as tga. Never tested its support.
.ras
Same as tga, just not as popular (at least, on Windows :) Never tested its support.
.xbm (X-Bitmap)
An old rather UNIX specific file format. Never tested its support.
.ani
Animated cursors file format for WIndows. Never tested its support.
Alexandre
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Alexandre, thanks for the info...
I've now tested .ggr, .ico, .cur, and .xbm files and they all work (found samples on my Linux box). Does anybody have test files for the .tga, .ras, .pcx, .ani, or .wbmp file formats? A web search finds explanations but no samples.
Thanks,
Tav
Tavmjong Bah wrote:
Does anybody have test files for the .tga, .ras, .pcx, .ani, or .wbmp file formats?
Here's a few samples from Windows XP. http://www.nabble.com/file/p17045412/imports.zip imports.zip The .cur, .ico, .tga, .pcx files import properly The .ani file causes Inkscape to crash, will issue a bug report on this later in the day.
Thanks Alvin!
I was able to open all the files including the .ani one with v0.46 on Linux.
So that leaves .ras and .wbmp left to try out from my original list. Anybody?
I could also use examples of .cdr, .xaml, .wmf and .ai (before and after version 9.0) files. Since the first three are recent additions while the latter is related to PS and PDF I am not too worried about testing them myself... but it never hurts.
Thanks,
Tav
On Sun, 2008-05-04 at 04:57 -0700, Alvin Penner wrote:
Tavmjong Bah wrote:
Does anybody have test files for the .tga, .ras, .pcx, .ani, or .wbmp file formats?
Here's a few samples from Windows XP. http://www.nabble.com/file/p17045412/imports.zip imports.zip The .cur, .ico, .tga, .pcx files import properly The .ani file causes Inkscape to crash, will issue a bug report on this later in the day.
Tavmjong Bah wrote:
I could also use examples of .cdr, .xaml, .wmf and .ai
here's a .wmf file. the .ani file crash appears to be a windows-specific issue, see https://bugs.launchpad.net/inkscape/+bug/226459 http://www.nabble.com/file/p17047846/3DARROW6.WMF 3DARROW6.WMF
On Sun, 2008-05-04 at 08:41 -0700, Alvin Penner wrote:
here's a .wmf file.
http://www.nabble.com/file/p17047846/3DARROW6.WMF 3DARROW6.WMF
Thanks! I've tested the .wmf file and it works fine.
Tav
I tried WBMP import in Inkscape 0.46 on windows and I found an interesting behaviour: When I drag and drop the bitmap at zoom 100%, it looks fine. But if I drag and drop the same bitmap at a lower zoom rate (in the example 71% wich is one scroll step from 100%) them zoom to 100%, the bitmap is rendered in a different way. The same happens at zoom 141% (one mouse scroll step from 100%). See attached screenshot. I attached the WBMP file in case someone wants to reproduce the behaviour.
Molumen
----- Original Message ----- From: "Tavmjong Bah" <tavmjong@...8...> To: "Alvin Penner" <penner@...1856...> Cc: inkscape-devel@lists.sourceforge.net Sent: Sunday, May 04, 2008 2:51 PM Subject: Re: [Inkscape-devel] File import
Thanks Alvin!
I was able to open all the files including the .ani one with v0.46 on Linux.
So that leaves .ras and .wbmp left to try out from my original list. Anybody?
I could also use examples of .cdr, .xaml, .wmf and .ai (before and after version 9.0) files. Since the first three are recent additions while the latter is related to PS and PDF I am not too worried about testing them myself... but it never hurts.
Thanks,
Tav
On Sun, 2008-05-04 at 04:57 -0700, Alvin Penner wrote:
Tavmjong Bah wrote:
Does anybody have test files for the .tga, .ras, .pcx, .ani, or .wbmp file formats?
Here's a few samples from Windows XP. http://www.nabble.com/file/p17045412/imports.zip imports.zip The .cur, .ico, .tga, .pcx files import properly The .ani file causes Inkscape to crash, will issue a bug report on this later in the day.
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Another thing that is good to know and should probably be mentioned somewhere in the manual: WBMP images cannot be embedded in the svg file. The embed script returns the following:
*********** C:\Users\molumen\Desktop\citycats1.wbmp is not of type image/png, image/jpeg, image/bmp, image/gif or image/x-icon ***********
Molumen
----- Original Message ----- From: <momo@...1386...> To: "inkscape devel list" inkscape-devel@lists.sourceforge.net Sent: Monday, May 05, 2008 3:06 PM Subject: Re: [Inkscape-devel] File import
I tried WBMP import in Inkscape 0.46 on windows and I found an interesting behaviour: When I drag and drop the bitmap at zoom 100%, it looks fine. But if I drag and drop the same bitmap at a lower zoom rate (in the example 71% wich is one scroll step from 100%) them zoom to 100%, the bitmap is rendered in a different way. The same happens at zoom 141% (one mouse scroll step from 100%). See attached screenshot. I attached the WBMP file in case someone wants to reproduce the behaviour.
Molumen
----- Original Message ----- From: "Tavmjong Bah" <tavmjong@...8...> To: "Alvin Penner" <penner@...1856...> Cc: inkscape-devel@lists.sourceforge.net Sent: Sunday, May 04, 2008 2:51 PM Subject: Re: [Inkscape-devel] File import
Thanks Alvin!
I was able to open all the files including the .ani one with v0.46 on Linux.
So that leaves .ras and .wbmp left to try out from my original list. Anybody?
I could also use examples of .cdr, .xaml, .wmf and .ai (before and after version 9.0) files. Since the first three are recent additions while the latter is related to PS and PDF I am not too worried about testing them myself... but it never hurts.
Thanks,
Tav
On Sun, 2008-05-04 at 04:57 -0700, Alvin Penner wrote:
Tavmjong Bah wrote:
Does anybody have test files for the .tga, .ras, .pcx, .ani, or .wbmp file formats?
Here's a few samples from Windows XP. http://www.nabble.com/file/p17045412/imports.zip imports.zip The .cur, .ico, .tga, .pcx files import properly The .ani file causes Inkscape to crash, will issue a bug report on this later in the day.
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
--------------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao...
--------------------------------------------------------------------------------
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On Mon, 2008-05-05 at 15:15 +0200, momo@...1386... wrote:
Another thing that is good to know and should probably be mentioned somewhere in the manual: WBMP images cannot be embedded in the svg file. The embed script returns the following:
C:\Users\molumen\Desktop\citycats1.wbmp is not of type image/png, image/jpeg, image/bmp, image/gif or image/x-icon
I imagine this will be true of most GDK supported file formats... I think Inkscape must be relying on GDK to open the file and create a pixbuf so that it can be displayed within Inkscape but Inkscape isn't setup to convert the files into one of the formats that the SVG spec requires to be supported (PNG, JPG, SVG).
And yes, I'll put in a big warning.
Thanks,
Tav
momo@...1386... wrote:
Another thing that is good to know and should probably be mentioned somewhere in the manual: WBMP images cannot be embedded in the svg file. The embed script returns the following:
C:\Users\molumen\Desktop\citycats1.wbmp is not of type image/png, image/jpeg, image/bmp, image/gif or image/x-icon
There simply hasn't been code written to handle them. What is the proper mimetype? If they are embedded they may not be supported in applications other than Inkscape. IIRC the SVG spec only requires compliant apps to support JPEG, PNG and SVG images.
Aaron Spike
On Mon, 2008-05-05 at 15:06 +0200, momo@...1386... wrote:
I tried WBMP import in Inkscape 0.46 on windows and I found an interesting behaviour: When I drag and drop the bitmap at zoom 100%, it looks fine. But if I drag and drop the same bitmap at a lower zoom rate (in the example 71% wich is one scroll step from 100%) them zoom to 100%, the bitmap is rendered in a different way. The same happens at zoom 141% (one mouse scroll step from 100%). See attached screenshot. I attached the WBMP file in case someone wants to reproduce the behaviour.
Is is the same when you import the bitmap? Also, is the SVG file different for the three instances? I'm guessing this is the drag-and-drop code trying to be smart more than the import. But that may be because I didn't write drag-and-drop ;)
--Ted
Here's a screenshot showing the difference between a drag 'n dropped WBMP and an imported one, both placed at 71% zoom. As a reference it also shows the same WBMP imported (or drag 'n dropped - result's the same) at 100%.
Looks like there is some kind of antialiasing being applied to the bitmap when it is imported or drag n' dropped at some zoom rates other than 100%. Also, this antialiasing is clearly visible only at zoom rates of 100% and 200%. Zooming to 400% and more shows no difference between the bitmaps.
Molumen
----- Original Message ----- From: "Ted Gould" <ted@...11...> To: <momo@...1386...> Cc: "inkscape devel list" inkscape-devel@lists.sourceforge.net Sent: Monday, May 05, 2008 6:33 PM Subject: Re: [Inkscape-devel] File import
On Mon, 2008-05-05 at 15:06 +0200, momo@...1386... wrote:
I tried WBMP import in Inkscape 0.46 on windows and I found an interesting behaviour: When I drag and drop the bitmap at zoom 100%, it looks fine. But if I drag and drop the same bitmap at a lower zoom rate (in the example 71% wich is one scroll step from 100%) them zoom to 100%, the bitmap is rendered in a different way. The same happens at zoom 141% (one mouse scroll step from 100%). See attached screenshot. I attached the WBMP file in case someone wants to reproduce the behaviour.
Is is the same when you import the bitmap? Also, is the SVG file different for the three instances? I'm guessing this is the drag-and-drop code trying to be smart more than the import. But that may be because I didn't write drag-and-drop ;)
--Ted
Here's a WBMP file generated by photoshop. I'll try to find targa and PCX files too.
Molumen
----- Original Message ----- From: "Tavmjong Bah" <tavmjong@...8...> To: "Alexandre Prokoudine" <alexandre.prokoudine@...400...> Cc: "Inkscape Devel List" inkscape-devel@lists.sourceforge.net Sent: Sunday, May 04, 2008 12:57 PM Subject: Re: [Inkscape-devel] File import
Alexandre, thanks for the info...
I've now tested .ggr, .ico, .cur, and .xbm files and they all work (found samples on my Linux box). Does anybody have test files for the .tga, .ras, .pcx, .ani, or .wbmp file formats? A web search finds explanations but no samples.
Thanks,
Tav
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On Mon, 2008-05-05 at 12:14 +0200, momo@...1386... wrote:
Here's a WBMP file generated by photoshop. I'll try to find targa and PCX files too.
Thanks! It opens fine in v0.46.
Alvin already sent me targa and pcx files (of course it doesn't hurt to have more examples).
I could still use .ras, .cdr, and .xaml examples to check.
Tav
On Sun, 2008-05-04 at 11:50 +0200, Tavmjong Bah wrote:
..ggr (Gimp Gradient)
This was done by me. It's probably important to note that it can only do linear gradients even though the format supports more types.
..outline (Text Outline File)
Bryce? I thought Bryce did this one.
..tga (Targa) ..ico ..cur ..wbmp ..pcx ..ras ..xbm (X-Bitmap) ..ani
These are all added by GDK. We query GDK to see what formats it can import and then use all of those. So, if a particular version of GDK isn't compiled with a format it won't so up. Plus, we should be able to import other formats with GDK loaders if they are available (I think someone is working on a RAW loader).
--Ted
On Sun, 2008-05-04 at 13:03 -0700, Ted Gould wrote:
On Sun, 2008-05-04 at 11:50 +0200, Tavmjong Bah wrote:
..ggr (Gimp Gradient)
This was done by me. It's probably important to note that it can only do linear gradients even though the format supports more types.
Noted.
..tga (Targa) ..ico ..cur ..wbmp ..pcx ..ras ..xbm (X-Bitmap) ..ani
These are all added by GDK. We query GDK to see what formats it can import and then use all of those. So, if a particular version of GDK isn't compiled with a format it won't so up. Plus, we should be able to import other formats with GDK loaders if they are available (I think someone is working on a RAW loader).
With the above hint I got a list of file types supported by GDK using a Perl script I modified from the web:
ani The ANI image format bmp The BMP image format gif The GIF image format ico The ICO image format jpeg The JPEG image format pcx The PCX image format png The PNG image format pnm The PNM/PBM/PGM/PPM image format family ras The Sun raster image format svg Scalable Vector Graphics tga The Targa image format tiff The TIFF image format wbmp The WBMP image format wmf Windows Metafile xbm The XBM image format xpm The XPM image format
Thanks,
Tav
On May 4, 2008, at 2:27 PM, Tavmjong Bah wrote:
These are all added by GDK. We query GDK to see what formats it can import and then use all of those. So, if a particular version of GDK isn't compiled with a format it won't so up. Plus, we should be able to import other formats with GDK loaders if they are available (I think someone is working on a RAW loader).
With the above hint I got a list of file types supported by GDK using a Perl script I modified from the web:
Just remember, those might vary by platform Inkscape is run on. Especially on Linux
On Mon, May 5, 2008 at 12:03 AM, Ted Gould wrote:
import other formats with GDK loaders if they are available (I think someone is working on a RAW loader).
That's Hub :)
http://www.figuiere.net/hub/blog/?2008/05/03/611-demosaic-and-pixbuf
Alexandre
Tavmjong Bah schreef:
Hi,
In updating my book for v0.46 I have been reviewing file import. I am trying to learn more about some of the formats listed in the file import dialog (File->Import) under the drop-down menu. Are all the file types listed really supported in Inkscape? How is the list of file types generated? I can't seem to find it in the code. In particular, I would like to know more about Inkscape's support for these file types (it is not even clear to me what format some of them are suppose to be):
.ggr (Gimp Gradient) .outline (Text Outline File) .tga (Targa) .ico .cur .wbmp .pcx .ras .xbm (X-Bitmap) .ani
For unknown file extention names try:
http://www.file-extensions.org/ http://filext.com/
Regards,
Kees
participants (9)
-
unknown@example.com
-
Aaron Spike
-
Alexandre Prokoudine
-
Alvin Penner
-
Jon A. Cruz
-
Jonathan-David SCHRODER
-
Kees Serier
-
Tavmjong Bah
-
Ted Gould