| 
			
			 | 
		#136 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() Posts: 206 
				Karma: 317 
				Join Date: Oct 2006 
				Location: England 
				
				
				Device: Sony PRS-505, iPad, Kindle 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks kovidgoyal, I'll take a look. I'm finding the library stuff and the cross-platform stuff the hardest thing to work out with Python, the language itself is quite excellent though!
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#137 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Yeah cross platform is a pain. You may also want to look at the Python Imaging Library. It should allow you to do the transforms easily in python, without relying on an external imaging library. If you need any help with the cross platform stuff, just ask, I have a good deal of experience with it.
		 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Last edited by kovidgoyal; 06-18-2008 at 11:55 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#138 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() Posts: 206 
				Karma: 317 
				Join Date: Oct 2006 
				Location: England 
				
				
				Device: Sony PRS-505, iPad, Kindle 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I would have liked to use the Python Imaging Library but it misses a few vital functions that ImageMagick provides. Thanks for the pointers on the ImageMagick libraries, there's no mature interface for Python but I've managed to coble together a suitable interface, that now works well, from various sources. Also the ImageMagick documentation is almost non-existent when using the API. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I'll PM you if I have any questions, I'm particularly interested in cracking OS X support next.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#139 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 21 
				Karma: 10 
				Join Date: May 2007 
				
				
				
				Device: Sony Reader (PRS-500) 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I second the OSX support - if you need a guinea pig, just let me know!
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#140 | 
| 
			
			
			
			 the new guy 
			
			![]() Posts: 20 
				Karma: 10 
				Join Date: Jul 2007 
				Location: Central Alabama in a little town called Slapout 
				
				
				Device: PRS-505 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			this program is very nice. I was unsure of the capability of the prs505 to display comics but after putting a moon knight book on it and reading through it, I'm very impressed. Good work.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#141 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 13 
				Karma: 10 
				Join Date: Jun 2008 
				
				
				
				Device: PRS-505 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Well, I can confirm that the 64mb limitation is completely false. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Using the new pythin version of comiclrf, I have been able to generate a 4615 page, 251,386 kb .lrf file that works perfectly on my prs-505. It's an archive of Dilbert comics, 1990 to 2005, incidentally.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#142 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() Posts: 206 
				Karma: 317 
				Join Date: Oct 2006 
				Location: England 
				
				
				Device: Sony PRS-505, iPad, Kindle 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Update: Version 2.1 released 
		
	
		
		
		
		
		
		
		
		
		
		
		
			
 If you installed previous versions you can uninstall ImageMagick as the latest version has the libraries built-in (except for Linux). Last edited by FangornUK; 07-02-2008 at 10:58 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#143 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			On linux the most robust way to load the magickwand library would be 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	ctypes.cdll.LoadLibrary(ctypes.util.find_library('MagickWand'))
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#144 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() Posts: 206 
				Karma: 317 
				Join Date: Oct 2006 
				Location: England 
				
				
				Device: Sony PRS-505, iPad, Kindle 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks for the info kovidgoyal. Unfortunately they changed the library naming from Wand to MagickWand etc recently so my version tries to access either.
		 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Last edited by FangornUK; 07-02-2008 at 11:09 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#145 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Well, in that case 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	
lib = ctypes.util.find_library('MagickWand')
if not lib: lib = ctypes.util.find_library('Wand')
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#146 | |
| 
			
			
			
			 eAddictd 
			
			![]() Posts: 41 
				Karma: 10 
				Join Date: Apr 2008 
				Location: Italia 
				
				
				Device: PRS505, Iliad Book Edition 
				
				
				 | 
	
	
	
		
		
			
			 
				
				osx trouble
			 
			Quote: 
	
 But i uncompressed it and it doesnt work... i just said >ERROR: Can't load ImageMagick Library /Applications/Multimedia/ebook/comiclrf/ImageMagickOSX/lib/libWand.dylib i tried to run the program from outside the folder and inside the directory and subdirectories... but still doesnt work... i want to try it!  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#147 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() Posts: 206 
				Karma: 317 
				Join Date: Oct 2006 
				Location: England 
				
				
				Device: Sony PRS-505, iPad, Kindle 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Did you extract everything out of the TAR and all subdirectories? Also is X11 installed? Think ImageMagick might need that but I'm not sure. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Can you see the file "/Applications/Multimedia/ebook/comiclrf/ImageMagickOSX/lib/libWand.dylib"  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#148 | 
| 
			
			
			
			 Serial Bricker 
			
			![]() ![]() Posts: 65 
				Karma: 104 
				Join Date: Feb 2008 
				Location: Singapore 
				
				
				Device: Sony PRS-505, Kindle 3 KSO 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			here's an error: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Extracting... Traceback (most recent call last): File "comiclrf.py", line 363, in <module> File "comiclrf.py", line 298, in runcomic File "comiclrf.py", line 153, in processcomic IOError: [Errno 2] No such file or directory: 'c:\\users\\user\\appdata\\loc al\\temp\\tmp2ovzox\\001/01.jpg' ------------------------ I am using the latest version on windows vista. The application died when the cbz file itself has a folder structure inside.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#149 | |
| 
			
			
			
			 eAddictd 
			
			![]() Posts: 41 
				Karma: 10 
				Join Date: Apr 2008 
				Location: Italia 
				
				
				Device: PRS505, Iliad Book Edition 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#150 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() Posts: 206 
				Karma: 317 
				Join Date: Oct 2006 
				Location: England 
				
				
				Device: Sony PRS-505, iPad, Kindle 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Update: Version 2.2 released 
		
	
		
		
		
		
		
		
		
		
		
		
	
	
  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Conversion of comics (CBR/CBZ) | FangornUK | Conversion | 269 | 09-06-2012 12:43 AM | 
| PDF -> JPG -> CBZ -> LRF | leveck | Workshop | 13 | 06-16-2011 12:21 PM | 
| Best (approximately 7 inch) sub-250$ reader for color comics (unzipped CBR/CBZ)? | Neole | Alternative Devices | 15 | 05-15-2011 06:02 PM | 
| how to read / convert comics (.cbz) | cybmole | Calibre | 8 | 10-04-2010 04:16 AM | 
| CBZ > LRF (LRF>HTML/MOBI????) | sideburnt | Calibre | 4 | 09-15-2009 07:44 AM |