[solved] Bit of trouble - Path gets cut off during export

Post questions on how to use or achieve an effect in Inkscape.
mrdude1228
Posts: 5
Joined: Mon Jun 02, 2008 5:22 am

[solved] Bit of trouble - Path gets cut off during export

Postby mrdude1228 » Sat Sep 06, 2008 4:36 am

Okay, so I'm doing a bit of generic shiny Inkscape practice after being inspired by the latest Heathenx tutorial, right? And I come up with this, nothing amazing but eh. It's shiny.

http://mrdude1228.googlepages.com/Testing-inky.png

However. Whenever I attempt to export it to PNG, I end up with this, where the highlight on the left side of the text abruptly ends.

http://mrdude1228.googlepages.com/Testing.png

Method for creating the cut off section:
- Duplicate text
- Object->Path
- Duplicate text again
- Move newer text slightly down and right
- Subtraction path operation between the duplicates
- Move resulting path a bit down and right as well
- Change color to white
- Blur 2%

Notes:
- Tried setting Blur to 0 and made sure opacity was 100, to see if there was a problem exporting blur, even as a solid color it did this.
- Tried exporting JUST the highlight alone, as a standalone object on the red background. This DID export the whole thing.
- Grouped the text and all lighting aspects together and exported, no effect.
- Tried moving all the objects around, still grouped together, to a different part of the canvas, no effect.
- Tried changing highlight's color, no effect.
- Tried completely remaking the set of objects (hence why there are two), no effect.
- Tried putting highlight on the topmost layer (everything was on a single layer by default, and my default page has 3 layers), and made sure to raise highlight to top through Home key afterwards in the hopes there was some magic fairybox blocking my highlight's mojo, no efffect.

I'm sure there's some other way to go about this that might get around the problem (I'll try clipping a white path with the result of the subtraction operation earlier sometime soon, and blur that or something), but regardless, this seems like a perfectly legitimate approach, since even if something went silly with the fact I was modifying text, I converted it to a path first. As a former hobbyist programmer I have this horrible debugging disorder where if I don't understand why something happens for too long, I'm forced to slap myself in the face with a trout, and I really don't think anyone here wants that. :cry: Any thoughts? Ideas?

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Bit of trouble - Path gets cut off during export

Postby brynn » Sat Sep 06, 2008 7:14 pm

Hhhmm, do you have your images switched? It looks like
http://mrdude1228.googlepages.com/Testing-inky.png
shows the left side cut off, and
http://mrdude1228.googlepages.com/Testing.png
shows the whole thing.

Assuming they are switched, I would ask if you're sure the whole image fits inside the Inksape page border. And next I would ask if the exported bitmap's Export area and Bitmap size are correct. Maybe one or more of those variables defines a bit too small of an area for your image? Other than that, I don't have any idea what might be causing the problem. (If your sample images aren't switched, then I'm not even seeing your problem :? )

Wish I could be more help, but never fear, there are many a talented members here who will know what to do :D

mrdude1228
Posts: 5
Joined: Mon Jun 02, 2008 5:22 am

Re: Bit of trouble - Path gets cut off during export

Postby mrdude1228 » Sun Sep 07, 2008 12:21 pm

Erm. You posted those links in the same order I did :P

I'm talking about the white blur on the left side of the letters, just to clarify. And while those are all perfectly logical reasonings, I'm sure everything's completely inside page borders, considering that the rest of the image underneath exported fine ._.;;

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Bit of trouble - Path gets cut off during export

Postby brynn » Sun Sep 07, 2008 12:31 pm

You posted those links in the same order I did

Yeah, but I described them correctly ;)

On this page
http://mrdude1228.googlepages.com/Testing-inky.png
I do not see the rest of the image underneath. I see the entire image cut off.

[Edit -- Ok, wait a minute. You describe this
http://mrdude1228.googlepages.com/Testing-inky.png
as your original image in which nothing is wrong. It is a screen shot of your Inkscape window. And not only is the left side cut off, the right side is cut off as well. It looks like this is because it's zoomed a little too much for the whole image to show.

And this
http://mrdude1228.googlepages.com/Testing.png
you describe as the problem image. It is the actual PNG of the Inkscape image. (Not a screen shot.) And I see the whole thing there. Nothing is cut off, not even the star that makes it shiny. I see nothing different in this image, except that the entire image is in view, and it's not a screen shot.

I'm thinking either you're not showing what you intend with these images. Or else I'm just not seeing the problem. Most likely is that I just don't see what the problem is. So I would ask others to join this discussion, to help mrdude1228 solve his problem.]

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Bit of trouble - Path gets cut off during export

Postby brynn » Sun Sep 07, 2008 1:13 pm

Oh ok, I think I see what you're talking about.....maybe.
You have some highlights that show along the tops and left sides of the embossed letters. And the highlights do not extend all the way down the full length of the letters, they only extend halfway. And this shows up in both the left and right samples, but not in the original images.

Is that it?

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Bit of trouble - Path gets cut off during export

Postby microUgly » Sun Sep 07, 2008 2:39 pm

Can you post the original SVG for examination? You can upload it to mediafire.com.

mrdude1228
Posts: 5
Joined: Mon Jun 02, 2008 5:22 am

Re: Bit of trouble - Path gets cut off during export

Postby mrdude1228 » Mon Sep 08, 2008 2:46 am

Yes Brynn :) I see where the confusion came from - I originally just took a screenshot of Inkscape itself to show what it was supposed to look like, and then what it actually exported as. The cutoff on the left and right sides are because I was zoomed in too much - I wanted to be close enough that the highlights were clearly visible.

And MicroUgly... yes I can.

http://mrdude1228.googlepages.com/Testing.svg

Figures, I read the whole schtick on asking questions well, and I forget the most basic thing - the file itself :roll:

Just to recap, this is the SVG pictured in the first link, which by itself displays perfectly fine as far as I can tell, yet exports with that odd highlight cutoff.

n_n thanks for all the consideration so far InkscapeForumers, I'll continue mulling over this as well.

EDIT:
And because others may be thinking the same way, even when unblurred it cuts off:
http://mrdude1228.googlepages.com/TestingSolid.png

EDIT EDIT:
Ahahaha.... I... fixed it <_<;;

I simply Broke Apart (ctrl+shft+k) the highlight path, and then Grouped them (ctrl+g) together for organization's sake and...

http://mrdude1228.googlepages.com/TestingFixed.png

But I still don't understand why that worked. Especially considering, for example, the vertical highlight on the letter e is one continuous path anyways. Oh Inkscape, I love you dearly, but at times you can be such a befuddling mistress ._.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Bit of trouble - Path gets cut off during export

Postby microUgly » Mon Sep 08, 2008 10:04 am

It looks like a rendering bug much like as was identified here - viewtopic.php?f=5&t=1466#p7487

I noticed that even within the Inkscape window you can cause the blurred object to disappear in places by panning the canvas in and out of visibility.

It's great that you've found a work around. This information could be significant to developers so they can fix the problem. I'm not sure if this problem has already been reported (it's still present in the development builds) but if you want to help it would be great if you could report the bug and include your file and explain how you worked around the problem.

Note that if you weren't able to work around the issue in Inkscape, you may have had success converting the SVG to an PNG with Batik Rasterizer.


Return to “Help with using Inkscape”