Skip to content

Commit

Permalink
--subrepos update for ubuntu 12.04
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom committed May 10, 2012
1 parent 92db6f5 commit cf67233
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ocropus-genhtml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ os.chdir(args.book)
with open("index.html","w") as stream:
for d in sorted(glob.glob("????"))[:args.npages]:
genpage(d)
image = imread(d+".png")
if os.path.exists(d+".png"):
image = imread(d+".png")
else:
image = zeros((300,300,3))
out = ".__"+d+".png"
image = interpolation.zoom(image,(0.125,0.125,1))
imsave(out,image)
Expand Down

0 comments on commit cf67233

Please sign in to comment.