Generated pdf/png misses parts of image seen in svg/eps

Asked by ArtMusic

Hi,

my image is saved in eps and also in svg. However, when I save it as pdf a part of the image is missing. When I open the pdf I get an error message, that there might be errors in this file.

When I print my file and select a pdf creator instead of a printer the same part as before is missing. I tried to save it also as (Cairo) png, however, then even more parts are missing.

Another similar file does not show this problem.

Do you have any idea what might cause this issue? The file itself does not seem corrupted and I really would like to save it as it was a lot of work :(

Thank you for your help!

Question information

Language:
English Edit question
Status:
Expired
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Hachmann (marenhachmann) said :
#1

Hi ArtMusic,

as far as I know, there are several known bugs that lead to vanishing items in exported files, though only few for export to png.

What happens if you export a normal png exported via 'Export PNG image'?
Often the problems are related to clipping, so what happens if you remove all clips? (Find them using View -> Display Mode -> Outline)

Could you upload all your different files somewhere?

Regards,
 Maren

Revision history for this message
ArtMusic (katharina-uhr) said :
#3

Hi Maren,

thank you so much for your reply!

When I export as png the image looks as intended.

I am not sure what you mean with remove all clippings. I used clipping indeed a lot when making this image. However, I didn't figure out how to remove clippings and assume I would also lose part of the image.

My goal is to export the image as a 1200 dpi pdf with a width of 176 mm. Currently the selection is bigger because there was no way to crop the image and some parts which are covering underlying things are also hanging over the page border.

Below is the problematic image as svg.

https://www.dropbox.com/sh/aplip043fpap5r8/AAB53FzHIykTcTVQCcKtU1tia?dl=0

Thanks a lot for your help!

Revision history for this message
Hachmann (marenhachmann) said :
#4

I can see three options:

1.) If you really don't care if your pdf is not in a vector format (and it seems all your graphic is bitmap, only the numbers and red boxes at the right side are not), you can just export to png at 1200 dpi, and then open this file with any raster image editor (for example, the gimp, http://gimp.org), set page size and dpi, and export as pdf. This will give a file with a high dpi, but of very bad quality, as the underlying bitmap graphics do not have the dpi needed.

2.) What I would have done, though, for an image in highest possible quality, would have been to type those substance names myself (it's just about 35 names) instead of covering up the trademarked names (the resolution of the original image is (by far!) not sufficient for 1200 dpi).

The fork-shaped paths I would have traced manually, and the original diagram (with the colored blocks) I would have traced automatically. This would have given a full-vector image without any clips, and of resolution-independent quality, appropriate for a scientific publication.

3.) You could also just have used a raster graphics editor for this job, to cut the image and to paint over the sales names. This would yield a graphic with low resolution, though, just as the original. The only real vector objects in your drawing are the numbers, the red boxes and the clips, so it doesn't appear appropriate to use a vector graphics editor for this (if the quality does not matter).
As the result will be no different to the one from option 1.), I guess you can skip this now ;)

Btw. the pdf I create from your image opens just fine in my pdf program (still has the issues caused by those > 50 clippings) - can you also upload your corrupt pdf? Which operating system are you using, and which version? (Inkscape 0.91, I can see that from the file).
Another observation: your file is 175 mm wide, not 176.

See an example of the edited file (bitmap edited in bitmap editor, vector parts added in vector editor) without clippings here: http://staging.inkscape.org/en/gallery/item/24/
(will delete it in a week, as I don't know about copyright)

Guess I could also have written all this in German ;)

Viele Grüße,
 Maren

Revision history for this message
ArtMusic (katharina-uhr) said :
#5

Hallo Maren,

vielen vielen Dank für deine Hilfe!

Nach deiner Antwort habe ich versucht die Grafik auf eine andere Art von meinem Ursprungsprogramm zu exportieren und habe jetzt Postscript gewählt. Wenn ich es richtig verstehe, sollte dann die Auflösung generell besser sein, weil ich dann auch eine Vektorgrafik habe?!
Leider erkennt Inkscape den Text nicht als Text, gibt es da einen Trick oder ist das normal? Immerhin konnte ich jetzt Text löschen, da Inkscape jeden Buchstaben als ein einzelnes Objekt (nach Ungroup) sieht, also ist das Problem mit den Tradenames gelöst.

Entschuldige meine vielen Fragen, leider ist meine Erfahrung mit Bildbearbeitung sehr begrenzt und jetzt plötzlich bitter nötig
 :(

Jede Antwort hilft weiter!

Viele Grüße,

Revision history for this message
Hachmann (marenhachmann) said :
#6

Hallo Katharina,

das mit dem Export nach Postscript *kann*, aber muss nicht als Vektorgrafik enden - da kommt es einfach darauf an, wie das Programm, das die Daten/Bilder erstellt, diese ausspuckt. Generell unterstützt Postscript sowohl Vektor- als auch Bitmapdaten.

Wenn es tatsächlich ausschließlich Vektorelemente ausspuckt, dann ist das Bild komplett auflösungsunabhängig - also immer scharf, egal wie stark Du es vergrößerst. Das wäre natürlich wünschenswert.

Bei Texten bin ich mir nicht ganz sicher, aber es scheint so zu sein, dass sowohl Texte mit Information über die Bedeutung der Zeichen als auch Texte ohne diese Information in PS enthalten sein können - es kommt hier wohl wieder darauf an, wie das entsprechende Programm die Texte in PS umsetzt.

Bei meinen Tests (ich kann's auch bloß ausprobieren - das Problem hat sich mir so noch nie gestellt ;) ) konnte ich rausfinden, dass, wenn man beim Öffnen der PS-Datei mit Inkscape 'über Poppler importieren' auswählt, die Texte eines aus Firefox in PS gedruckten Dokumentes als einzelne Symbole (nicht editierbar) enden; wenn man das mit dem Poppler nicht auswählt, bekommt man editierbare Wörter und Satzteile.... Aber das kann für das, was Dein Programm exportiert, komplett anders sein.

Also leider nur ein definitives 'Das kommt darauf an...' von mir an dieser Stelle ;)

Bei weiteren Problemen lade gern die Datei im aktuellen Status irgendwo hoch, damit ich direkt gucken kann. Meinen Upload nehme ich jetzt wieder runter von der Webseite, damit Deine Studienergebnisse nicht zu früh irgendwo landen ;)

Viele Grüße,
 Maren

Revision history for this message
ArtMusic (katharina-uhr) said :
#7

Hallo Maren,

mir scheint es als ob mein Programm die Postscript-Exporte tatsächlich als Vektorgrafik exportiert. Zumindest bleibt beim Zoomen alles scharf :)

Danke für die Rückmeldung, ich werde ausprobieren wie die Resultate ohne Poppler sind.

Illustration 1 ist jetzt auch fertig und sieht so aus wie sie sollte :)

Jedoch lässt sich Illustration 2 frisch nach dem Postscript-Export nicht in Inkscape darstellen. Wenn ich diese Postscript-Datei mit Inkscape öffne oder die Import-Funktion nutze, kriege ich das übliche Menü, alles scheint gut, jedoch habe ich keine Vorschau (weißes Blatt). Nach dem Import/Öffnen ist keine sichtbare Grafik vorhanden.
Auch wenn ich alle Objekte auswähle (nur ein kleiner Check), ist nichts vorhanden.

Diese zweite Illustration kann ich aber mit Acrobat Distiller öffnen und dort sieht die Grafik so aus wie gewollt. Die Grafik ist vom Aufbau der ersten Grafik sehr ähnlich und hat auch eine sehr ähnliche Größe. Ich habe auch schon ältere Versionen dieser 2. Grafik als Postscript exportiert aber das Problem mit Inkscape bleibt bestehen.

Zwischendurch hatte ich mal einen Teil erfolgreich importieren können (statt der kompletten Grafik wurde nur ein Teil importiert, und dieser war gedreht).

Es scheint mir hier so als ob es nicht unbedingt an meiner Datei liegt. Ist das ein bekanntes Phänomen, dass manchmal der Postscript Import fehlschlägt (ohne Fehlermeldung)?

Ich finde es zumindest sehr seltsam, auch weil ich in beiden Grafiken eine praktisch identische Legende habe, und für die erste Grafik funktioniert der Import, für die zweite jedoch ebenfalls nicht.

Vielen Dank für das Löschen der Daten! Ich hab meine ebenfalls von Dropbox gelöscht.

Vielen Dank für deine Hilfe!!! Falls du dir diese Datei anschauen möchtest, sende ich sie gerne per Email oder so (wäre mir lieber als ein öffentlicher Link wenn möglich).

Viele Grüße,

Katharina

Revision history for this message
Hachmann (marenhachmann) said :
#8

Hallo Katharina,

bei dieser Frage muss ich leider passen - es gibt, soweit ich das mit einer schnellen Suche überblicken kann - nur einen gemeldeten Bug zum Thema: https://bugs.launchpad.net/inkscape/+bug/505991 - und ob der zu Deinem Problem passt, kann ich leider weder mit Datei noch ohne sagen, da ich keiner der Entwickler bin....

Kannst Du eine 'öffentlichkeitstaugliche' Datei (mit falschen Daten) erstellen und die hochladen (gern auch als Bug report)?
Ich kann mir vorstellen, dass dieses Problem 'neu' bzw. noch nicht bekannt ist.

Im Notfall gibt es auch die Möglichkeit, einen bug report auf 'private' zu setzen, damit niemand (außer den Entwicklern und Dir) auf die hochgeladenen Dateien zugreifen kann. Das reduziert aber leider auch die Wahrscheinlichkeit, dass jemand von außerhalb des Entwicklerteams zur Lösung beiträgt.

Private Mails an Entwickler sind meist weniger hilfreich, da dann jeweils nur einer Zugriff hat - und ob der nun grade eine Lösung parat hat, oder Zeit, daran zu arbeiten, ist nicht gewiss.

Viele Grüße,
 Maren

Revision history for this message
Launchpad Janitor (janitor) said :
#9

This question was expired because it remained in the 'Open' state without activity for the last 15 days.