[Clipart] some of the pictures contain binary code

Gerald Ganson Gerald.Ganson at rdc.ab.ca
Mon Sep 26 09:44:21 PDT 2005


Yup I wrote a script to remove all content between the <i:pgf
id="adobe_illustrator_pgf"> tag and the </i:pgf> tag in an Adobe
Illustrator SVG file. I ran the script against all the files I had
uploaded for R.17.

Results 	- before run, 99 files, 20.4 MB
		- after run, 99 files 2.91 MB

This is obviously worth the time and effort.

I need to next open each file and confirm that it is all OK, and no
problems were created with the files.
I can supply the script to any other Windows/AI current or future
contributers.

If all seems ok what would be the next step - run this against the
collection at OCAL
or me re-submit all my content again ?

(personally it would seem better to run something like this against the
collection)

I'll be running it before future submissions though. (As long as all
TESTS out OK)

Thanks for pointing this out.

Gerald G.

-----Original Message-----
From: clipart-bounces at lists.freedesktop.org
[mailto:clipart-bounces at lists.freedesktop.org] On Behalf Of Nicu Buculei
Sent: Monday, September 26, 2005 9:14 AM
To: clipart at lists.freedesktop.org
Subject: Re: [Clipart] some of the pictures contain binary code

Gerald Ganson wrote:
> In the case of woman_chemist, there was no damage done by turning off 
> the "Preserve Illustrator Editing Capabilites", but I would have to 
> save each file in this fashion and then confirm that it survived.
> 
> Not too big of a deal I guess.

My own try: opened the file in a text editor (gedit) and deleted
*everything* from <i:pgf id="adobe_illustrator_pgf"> to </i:pgf> Now the
file is only about 33 kB and open just fine both in Inkscape and eog

> I'll try and watch for this as I create content, or eventually move 
> away from AI for this purpose.
> 
> However I do feel that if OCAL wishes to become a really used and 
> topnotch collection it need to play nice with both Open Source and 
> commercial titles.
> 
> Perhaps an FAQ page on best methods within AI and other packages to 
> submit to OCAL would be useful for content submitters.

the removal of this junk delimited by the <i> and </i> tags should be
easily scriptable

--
nicu
_______________________________________________
clipart mailing list
clipart at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/clipart



More information about the clipart mailing list