Simple SVG editing (like combining two images) in batch mode?
by Marcin Kasperski
Is it possible to use inkscape (if not, something else) to do simple
SVG editing, like combining two images into one? So one can script it...
My typical use case is - I have collection of images and I need to
generate their versions on a few different backgrounds. Doing it
manually is very tedious.
With bitmaps Image::Magick works great, sth like
$img->Read(picture);
$img2->Read(background);
$img2->Composite(image => $img, gravity => 'center');
$img2->Write(output)
and I am done (here it is perl scripting, but that's not very important).
Any chance for something similar with SVG?
15 years, 7 months
Keep line width when scaling
by Joshua Nibecker
I am using Inkscape from the command line to batch process a large
number of svg's to png's. Some of the svg's need to be scaled before
they are converted to png's. The commands for scaling are as follows.
-w, --export-width=WIDTH
-h, --export-height=HEIGHT
The problem I am running into is that I do not want the stoke-width to
change (scale) when I perform the scaling operation. Is there anyway
to accomplish this from the command line? Or can someone recommend
another library that can help me out.
Regards,
Joshua
15 years, 7 months
A problem with Greek letters
by Nihixul
I have recently moved my work from an old laptop to my new one. On my new
laptop, Inkscape (which is likely a slightly newer version than that on my
old laptop) is not correctly rendering any of the Greek letters in my
figures. A sigma is shown as an 's', etc.
All letters were composed in verdana using copy/paste from character map in
Windows XP. They have transferred to two other computers correctly (and
obviously show up correctly on the old laptop). I can compose NEW Greek
letters via this method on these SVG's perfectly. I am using Version .45.1.
Other special figures, like the bullet and the infinity symbol, rendered
fine.
Any ideas?
I searched the forum for the keywords "Greek letters" but I found nothing
useful.
--
View this message in context: http://www.nabble.com/A-problem-with-Greek-letters-tf4673361.html#a13351532
Sent from the Inkscape - User mailing list archive at Nabble.com.
15 years, 7 months
multiselect in xml editor?
by Roger Keays
Hi there,
I'm using Inkscape to design web pages and it's great for this job, but
seeing as I have mapped the html <div>s to many nested svg groups it
soon becomes difficult to select the objects I need with the mouse.
It's very easy with the XML editor, but I don't seem to be able to do
multiselect using this tool! Is it possible, or on the list of
improvements? I'm on Inkscape 0.45
Thanks in advance,
Roger
--
------------------------------------
Sunburnt Web Services
p: +61 7 3117 9661 (UTC +10)
f: +61 7 3102 9141
w: http://www.sunburnt.com.au
e: info@...2377...
------------------------------------
15 years, 7 months
SVG => PDF conversion problem with fills
by Alexander Bonivento
Hello everyone.
Sorry to bother you again with something strange, but my actual project
needs all of this... :)
Attached you will see an SVG and its PDF created via inkscape.
At the end i will need to create it from commandline (all of this is
about a PHP app, so i cannot consider the GUI), anyhow to test how
things looks like in inkscape i also installed it locally (with GUI)
As you can see, the SVG file is a bit unusual: it contains a nested SVG
graphics, using a G container to place and scale it as needed.
That nested object can be everything, as users will be allowed to send
their own SVG files.
Now: in inkscape GUI, it looks correctly. I also included in zip a png
files which will show you how the design should be.
But in the PDF the "Fire Dept." nested SVG is wrong, totally wrong...
It seems inkscape renders it correctly while in GUI, but fills the
external paths with black when converting to PDF.
Same results of course when i try (as i will need to do) with commandline.
Export command i'm using now is:
inkscape -z svgfile.svg --export-pdf=pdffile.pdf --export-text-to-path
Any suggestion on how to solve this? Maybe some SVG formatting i should
recommend to my users?
Many thanks in advance,
Alex
15 years, 7 months
Gradients lost Inkscape to Adobe Illustrator
by Anthony Tekatch
Can gradient fills be exported to Adobe Illustrator file type?
Gradients seem to be totally lost, and a bitmap cannot be converted to ai
without a Ghostscript error:
GPL Ghostscript SVN PRE-RELEASE 8.61: Unrecoverable error, exit code 1
I am using Inkscape version 0.45.1-1 (Debian install)
TIA,
Anthony
15 years, 7 months
Problem using arphic fonts with Inkscape in Gutsy
by Loïc Martin
Hi,
I've got a document that contains Chinese characters. Each time I want
to change the font (Ctrl-Shift-T) to use one of the only two Chinese
fonts in Gutsy (arphic fonts), the changes don't get applied.
The fonts have a name in Chinese, and maybe that's why they don't work.
However, I really need to use them, since a latin font would default to
different types of fonts for each characters in the same line, producing
an unusable result.
Can anybody help me with that matter?
Thanks in advance,
Loic
15 years, 7 months
Testing needed on OS X Intel
by jiho
Hello everyone,
I would need someone with a 'virgin' system on an Intel machine to
test the latest dev build. By 'virgin' I mean:
- without Fink or MacPorts or a custom installed python
- without modifications to ~/.macosx/environment.plist
(- without modifications to ~/.bashrc -- this one should not be a
problem but who knows)
- without the python modules that were distributed previously
alongside Inkscape or in the dev builds repository
Basically this means that if you just install regular mac
applications by drag and drop and never bothered to install Python
for Inkscape, you are the one I need ;)
I made some modifications to Inkscape so that the python modules that
Inkscape uses for the "Effects" are directly integrated inside the
application and work out of the proverbial box. So I need you to
download and install (drag-and-drop, as usual) this:
http://inkscape.modevia.com/macosx-snap/Inkscape-16250-i386.dmg
Run it, draw something with the calligraphy tool for instance and
apply two effects to it:
- Color > any color effect
- Generate From Path > Intrude Extrude Halo
Both should work with no additional work.
If your system is not as virgin as I described but that you still
want to help, it is possible. You only need to remove the python
packages you could have installed previously, to be sure these do not
come into play here. You need to remove the folders _xmlplus, lxml
and numpy from /System/Library/Frameworks/Python.framework/Versions/
2.3/lib/python2.3/site-packages and then follow the steps described
above.
If you have Fink/MacPorts with python or a custom python install from
MacPython however, this change won't affect you since Inkscape will
use your newer python install and discard the pre-compiled python
modules which are made for the system install of Python. You still
need to install lxml and numpy via Fink/MacPorts or by compiling them
from source.
Please report here your success or failure. If someone could forward
this to Inkscape-testers to which I am not subscribed it would be nice.
Cheers,
JiHO
---
http://jo.irisson.free.fr/
15 years, 7 months
Screwed-up SVG file
by Dan H
Hello,
I had been working with a progressively complicated SVG file when after a while I noticed strange behavior:
- When I tried to export the drawing or the bounding box defined by some object, all I got was a transparent PNG file.
- When clicking on the "Zoom to fit drawing in window" button, I didn't see anything any more. Only via Edit->Select all and then "Zoom to fit selection in window" button lets me the entire drawing.
- When I set the page size to some selection (single or multiple selection), the page was set to something that didn't have to do with the selection at all.
- When I ungrouped stuff that had been moved, copied and pasted or ortherwise modified, parts of the group flew all over the place.
- Several other aggravating things that I fortunately don't remember.
- Saving as "Plain SVG" and then loading that didn't change anything.
Of course I thought it was some weird invisible object causing all this, so I deleted all layers one by one but the behavior persisted. After I ended up with a completely empty drawing, I drew a single rectangle into it and still observed the weirdness. I've attached the file in question. It was made with v0.45, but v0.44 behaves the same.
Open the attached file, then click "Zoom to fit drawing in window". You'll see.
Or select the single object, then do File->Document Properties->Fit Page to selection. For giggles, click several times.
What's happening here?
--D.
15 years, 7 months