Skip to content

Commit

Permalink
Correct image URL export and testImage demo
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesu committed Dec 16, 2009
1 parent 01a566f commit e0165f6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css-export.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ def exportObjects(list, doc, style):
if img != None:
# Image file
name = img.getFilename()
style.append("background-image: url(\"%s.png\");\n" % noext(name))
style.append("background-image: url(\"%s.png\");\n" % noext(basename(name)))

# Background position
uv_min, uv_max = obj.getUVBounds()
Expand Down
Binary file modified examples/testImage.blend
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/testImage.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
top: -64px;
-webkit-transform-origin: 64px 64px;
-moz-transform-origin: 64px 64px;
background-image: url("/Users/jamesu/Projects/Open/csstransformexport/examples/testImage.png");
background-image: url("testImage.png");
background-position: 0% 0%;
-webkit-background-size: 100.00% 100.00%;
-moz-background-size: 100.00% 100.00%;
Expand Down

0 comments on commit e0165f6

Please sign in to comment.