View Single Post
Old 02-27-2010, 06:49 PM   #1
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
CBZ Document Plugin (DR800S/SG) (r4)

Another little hackie.

It's a very simple CBZ viewer for the DR800. The story behind this one was that I was fed up with trying to get a good ePub conversion of my various comics, and PDF was not much better (scaling fun with the ADE renderer, plus a DR800 bug).

So instead, I wrote one up. It is based on the images plugin that iRex includes with the DR800, just tweaked to understand ZIP files. Some optimizations had to go into this just to make it work (assumptions in the images plugin lead to files being loaded multiple times when not needed), but it could be better.

Known Issues:
  • Bookmarks have a bug. You can set them, but you can't unset them, and they don't appear to be set while viewing the page. I've cleaned up the code as best I can, and it still isn't clear why the page won't dog-ear. If a developer could give some insight as to what is required of the plugin to make bookmarks work correctly, it might help.
  • Progressive JPEGs are slow to load (5-10 seconds, versus ~1 second of other JPEGs). Unfortunately, it's not really easy to know which is which.

Install instructions:
  1. Unzip
  2. Copy "Comics" to "Personal Documents" on device.
  3. Run "Install Comics" from the device.
  4. Enjoy.

The source is meant to build as part of the uds plugins source for 3.0 provided by iRex, under plugins.

Release Notes:

r5
  • Changes to the installer. Folder can now be anywhere under "Personal Documents".
  • Fix to the installer so it will actually uninstall now.
  • No code changes.

r4
  • Metadata is now supported. Title/Author/Publisher can be pulled from the CBZ as long as it uses the "ComicBookInfo" format introduced by ComicBookLover.
    I'm not 100% sure exactly what apps support this, but it allows attaching metadata to the CBZ file itself by using the ZIP file comment area (Docs on the format: http://docs.google.com/View?id=dcs4kx8q_756xdtv7gg).

r3
  • Optimizations, Optimizations, Optimizations. Loading a CBZ and rendering should be a fair amount faster now. Progressive JPEGs will still kill performance.

r2
  • Fixes a couple one-off errors (d'oh) that could cause a crash, or simply render the image in the wrong place.
Attached Files
File Type: zip comics_src.zip (636.8 KB, 706 views)
File Type: zip Comics_r5.zip (130.3 KB, 832 views)

Last edited by Kolenka; 03-04-2010 at 02:08 AM. Reason: r5 Released
Kolenka is offline   Reply With Quote