
Hi,
IMO the OCAL import function catches PNGs because it is by default the first file of an entry and it is used as the thumbnail. As you know OCAL is based on CCHOST which does not have an automatic thumbnail generator from SVG files (OCAL project lacks programmers to create such a feature), so it has been decided that in the meanwhile every uploader will upload a PNG along with the SVG and define the PNG to be the default file for the entry so ot is displayed as a thumbnail on the site.
BUT not all the entries have PNG thumbnails so in these cases the default file is SVG.
Examples: This entry has both PNG (default) http://openclipart.org/media/files/molumen/7379 This one has not http://openclipart.org/media/files/liftarn/7531 (the only and therefore default file here is SVG)
Also some entries have several version of the SVG (slightly corrected versions of the same file or just elements of a collection). Here are example: http://openclipart.org/media/files/molumen/3767 and http://openclipart.org/media/files/organick/1597
And in some rare cases, the entry can contain both PNG and SVG but the SVG comes ahead of the PNG and therefore the default file is SVG (these cases are very rare as we always keep an eye on new entries and correct them).
If the OCAL import function catches the first (default) file of an entry, it will in most of the cases catch the PNG thumbnails, not the SVG.
Molumen
----- Original Message ----- From: "bulia byak" <buliabyak@...400...> To: "Kees Cook" <kees@...62...> Cc: "inkscape-devel" inkscape-devel@lists.sourceforge.net Sent: Sunday, February 17, 2008 6:57 AM Subject: Re: [Inkscape-devel] ocal import broken
On Feb 17, 2008 1:26 AM, Kees Cook <kees@...62...> wrote:
Hmmm. Is the OCAL import supposed to just do xlinks? That seems weird to me -- it results in importing PNGs and stuff some times. Regardless, I've fixed it up to track the tempfile name now. (I had accidentally overridden the myFilename variable.)
Thanks, now importing works - but no matter what I try I always get bitmaps imported. Is it that OCAL has so many bitmaps (I remember it had mostly vectors), or maybe something's wrong with the import?
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel