svgObjectModelGenerator
svgObjectModelGenerator copied to clipboard
Transforms are not being mapped properly
Needs test media and more information.
I am seeing problems with whack transforms when isolating a single layer. The test case I'm looking at is text on a path, but I think the problem at least includes other kinds of text if not all transforms in the isolated context.
I'll add some test files.
Here's a smoke file for shapes: http://adobe.ly/1wbWwMm
(warp, flip horizontal, & flip vertical currently generate correctly)
Here's one with group transforms: http://adobe.ly/1nJgm9Q
(rotate & scale seem to generate svg correctly)
Regression test file for QE: https://www.dropbox.com/s/7ax350b44e3s7ov/iOS7-Discover.psd?dl=0
From this issue: https://git.corp.adobe.com/edgecclayout/crema/issues/378 - Post.svg is not rendering - it has a transform matrix.
Here is the one I was looking at where I noticed it first... (could be other issues at play too)...
https://drive.google.com/a/601t.com/file/d/0B1M3zV5eEym9OVlvdk5nNk1mdTg/edit?usp=sharing
Ok, it looks like the rawPath has the transformed path. It would of course be great if we can get the transform directly and we could preserve the shape type instead.
The current problem for shapes is just that we don't know if we have to use the rawPath or the shape directly. There doesn't seem to be a hint in the JSON file.
Here is the bug report for generator-core https://github.com/adobe-photoshop/generator-core/issues/265
For simple shapes it seems like we could work-around by writing the equivalent raw path and compare it to see if has been transformed... hackey, but seems like it might work. Worthwhile to look into this?
I'm thinking not since we would just end up with a raw path, not simple shape + transform like we really want.
blocked on the generator-core bug. considering adding an errors.txt warning.
when fixed, please regress with testfile from https://git.corp.adobe.com/edgecclayout/crema/issues/403 (closed as duplicate with this bug)
PS team logged the rotate case in Watson: https://watsonexp.corp.adobe.com/#bug=3822063
Another issue from Seth Walker: https://git.corp.adobe.com/edgecclayout/crema/issues/594
PS team logged another on transformed text: https://watsonexp.corp.adobe.com/#bug=3827889
another watson bug: 3849215