gotcha

Author Topic: Image shifted when viewed in browser  (Read 1254 times)

February 25, 2018, 06:03:44 PM
Read 1254 times

hecatoncheyr

  • Sr. Newbie

  • Offline
  • **

  • 2
Hi,

I've been having issues getting objects/paths to hold position (as when viewed in inkscape) when viewed in browser. As seen in the attached mockup sample images the triangle is correctly positioned towards the bottom of the image when viewed in inkscape. When saved and viewed in the browser, it jumps to an entirely different position. I'm new to inkscape so there's something I'm not understanding and/or don't know for this issue to persist. I've literally spend the past two days this weekend working on solving this issue and have not been able to do so.

I've tried the following:

1. Converting objects to paths.
2. Using existing transform/translate in the XML viewer to position the object.
3. Using existing transform/matrix in the XML viewer to position the object.
4. Removing all transforms from the XML viewer.
5. Manually creating transformations in the XML viewer. (Both translate/matrix)
6. Grouping the paths
7. Combining paths
8. Unifying(Union) the paths
9. Grouping/ungrouping/regrouping the paths.
9. Creating a new layer, tracing the original, in an exact copy, then deleting the original.
10. Duplicating the layer and shifting them around the screen (they all snap to the same wrong position in browser)
11. Use the transform dialogue box to move things and applying it to each object separately.
12. Using a duplicate SVG file to import the objects/paths/layers again. (sometimes works???, sometimes just 'anchors it to a different position)
13. Googling transform position issues and reading different recommendations.
14. Using the paste in place command seems to shift it around but not make it stick where its supposed to be.
15. Various combinations of all of the above.

At this point, I've tried so many different things I can't keep track of them all. So there's something I'm not understanding or aware of. I don't know what to do, except start all over (again) and hope I don't repeat the same steps that cause this issue.

If anyone can help, I'd appreciate it.

Thanks

February 26, 2018, 04:46:16 PM
Reply #1

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Can you share the SVG image, and also inform us which browser you're using to view the file?

February 27, 2018, 07:58:25 AM
Reply #2

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

In addition to what Moini asked for, can you give us the link to a page where you have the SVG image embedded?  I might be informative for people with different browsers to test and look at it.
  • 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                       

March 03, 2018, 05:15:31 PM
Reply #3

hecatoncheyr

  • Sr. Newbie

  • Offline
  • **

  • 2
I figured out the issue was being caused by an affine transformation outside inkscape. http://mathworld.wolfram.com/AffineTransformation.html

Once it was accounted for, everything snapped into place correctly. It only took me 3 days after my original post to figure it out... :b1:

Thanks!

March 04, 2018, 04:51:00 AM
Reply #4

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Sounds like you had a fun 3 days :-P Glad it works now!

March 05, 2018, 10:28:27 AM
Reply #5

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
"affine transformation" had to look that up!

Except that you didn't mention using them, I might have guessed you had one or more LPEs in the image.  But having looked up that term, it makes me wonder if some of the  LPEs use that, I mean in the maths which make them work.
  • 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