gotcha

Author Topic: Shape appears cropped with effects  (Read 1663 times)

June 15, 2017, 01:08:04 AM
Read 1663 times

jak888

  • Sr. Newbie

  • Offline
  • **

  • 2
Hello all,

I have designed a Logo in Inkscape with which I have a slight problem: The background consists of 3 Shapes each one bigger than the previous, which are blurred and have an effect on them (bonus points if you can recognize the effect). The Problem is that the biggest shape gets cropped at the top or the bottom. At first I thought this had something to do with document size, which it does not. Then I started moving around stuff and it got really strange.

In the attached file you can see my problem: In the original image, the shape does not phase into transparency at the top and the bottom. If you now take the mid sized shape and move it somewhere else both in x and y direction the missing pieces on the larger shape appear. When I move it back, it gets cropped again. If I enlarge the mid shape it gets fixed, too, but I don't want to do that. Why does this happen? How do I stop it?
While looking for clues as to what caused this, I copied the 3 shapes to another document which was even stranger: They turned up green and without the effect. Once I applied an effect to them, the same thing happened.

Any help is greatly appreciated.Thanks in advance!

June 15, 2017, 02:26:27 AM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

I've used a similar filter to that, but I don't think exactly the same one.

The main problem that you're seeing is because the boundaries of the filter aren't correct.  (Wish people would fix that when they make the filters!)

Filters Editor > that filter > Filters General Settings tab.  I've heard conflicting advice about whether you should tweak the Dimensions or the Coordinates, or both.  But I would start with Dimensions.  Probably you can entirely fix it with Dimensions, but I don't know that for sure.

Some other other problems you were seeing might have been display issues (known) but I haven't tested your file yet.  As soon as I post this, I'll investigate your SVG file, and I'll post again, if I learn anything different.

:argh:  Why did they take the name of the filter out of the status bar??!!!  {off to LP to make a wishlist request.....}

My bad!  Was looking at a simple blur (gaussian) where that's correct just to say "filtered".
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

June 15, 2017, 02:56:06 AM
Reply #2

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Moving or enlarging the medium sized one doesn't fix the problem.  You can see that it's cut off too.  At least it is for me.

I think there might be a bug about copying a filtered object to another file.  I'd have to research for sure, but it's ringing some little bell.

When I change the Y dimension to 1.5, it fixes the bottom edge.  But I had to change the Y Coordinate to -0.35 to fix the top edge.  I wonder if it should all be done with coordinates?

Testing more....

No, that's the best I can get, with those changes above.  You might do some trial and error yourself.  However, NOTE - the only way to undo these changes, are to re-set the values in those fields.  The Undo button doesn't work here.  So either write down or just don't forget the original values, before you start.

  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

June 15, 2017, 06:35:23 AM
Reply #3

jak888

  • Sr. Newbie

  • Offline
  • **

  • 2
Not sure if my earlier post will make it through, so:

Thanks Brynn for your help, you've helped me fix it!

I had to adjust the Boundaries like you said. It took me a while to find the right setting, though, since I had a lot of effects in that document, because of trial and error. Now it looks good.
Apparently the reason this happened was that I must've at some point selected all the objects and applied the effect to all at the same time.

As for the effect itself, before fixing it, I took a look at the XML code and found out it's called "pixel smear". So, bonus points for me, I guess...

Again, thank you for your quick response time and your support.

June 15, 2017, 08:32:10 AM
Reply #4

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
It's a conceptual problem of the filtering in svg.

You have to specify a filtered area every time as blurring at 100% would take infinite space (?).
The filter in question exceeds the given borders. As well with blurring, you cannot hard-code an area that would always work, with every blurring radiuses and object proportions.

A general workaround can be grouping the object with a larger, transparent object to increase the filtered objects original bounding box.

On a side note the blurring filter primitive is percentage based so with a larger bounding box size you will see a different fading with the same amount of blur set.
A "positive" consequence of that if you want to add like the same blurred dropshadow to different sized text objects, it's only possible by the mentioned grouping method.