mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 11:20:09 +00:00 
			
		
		
		
	more cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									e620063915
								
							
						
					
					
						commit
						c4c7c78019
					
				| @ -92,7 +92,6 @@ var SharpActions = actions.Actions({ | |||||||
| 	// 			}
 | 	// 			}
 | ||||||
| 	// XXX make backup name pattern configurable...
 | 	// XXX make backup name pattern configurable...
 | ||||||
| 	// XXX add crop support...
 | 	// XXX add crop support...
 | ||||||
| 	// XXX revise logging...
 |  | ||||||
| 	makeResizedImage: ['- Image/', | 	makeResizedImage: ['- Image/', | ||||||
| 		core.doc`Make resized image(s)...
 | 		core.doc`Make resized image(s)...
 | ||||||
| 
 | 
 | ||||||
| @ -303,7 +302,6 @@ var SharpActions = actions.Actions({ | |||||||
| 	// XXX test against .makePreviews(..) for speed...
 | 	// XXX test against .makePreviews(..) for speed...
 | ||||||
| 	// XXX this does not update image.base_path -- is this correct???
 | 	// XXX this does not update image.base_path -- is this correct???
 | ||||||
| 	// XXX do we need to be able to run this in a worker???
 | 	// XXX do we need to be able to run this in a worker???
 | ||||||
| 	// XXX EXPERIMENTAL
 |  | ||||||
| 	makePreviews: ['Sharp|File/Make image $previews', | 	makePreviews: ['Sharp|File/Make image $previews', | ||||||
| 		core.doc`Make image previews
 | 		core.doc`Make image previews
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,42 +0,0 @@ | |||||||
| /********************************************************************** |  | ||||||
| *  |  | ||||||
| * |  | ||||||
| * |  | ||||||
| **********************************************************************/ |  | ||||||
| 
 |  | ||||||
| var requirejs = require('requirejs') |  | ||||||
| requirejs.config({ |  | ||||||
| 	nodeRequire: require, |  | ||||||
| 	baseUrl: process.cwd(), |  | ||||||
| }) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| /*********************************************************************/ |  | ||||||
| 
 |  | ||||||
| requirejs(['lib/preview'], function(preview){ |  | ||||||
| 	process.on('message', function(m){ |  | ||||||
| 		preview.makePreviews( |  | ||||||
| 				m.images,  |  | ||||||
| 				m.sizes,  |  | ||||||
| 				m.base_path,  |  | ||||||
| 				m.target_tpl,  |  | ||||||
| 				function(err, data){ |  | ||||||
| 					// XXX send the data back to parent...
 |  | ||||||
| 					process.send({ticket: m.ticket, err: err, data: data}) |  | ||||||
| 				}) |  | ||||||
| 			/* |  | ||||||
| 			.catch(function(err){ |  | ||||||
| 				// XXX
 |  | ||||||
| 			}) |  | ||||||
| 			*/ |  | ||||||
| 			.then(function(){ |  | ||||||
| 				process.send({ticket: m.ticket, status: 'completed'}) |  | ||||||
| 			}) |  | ||||||
| 	}) |  | ||||||
| }) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| /********************************************************************** |  | ||||||
| * vim:set ts=4 sw=4 :                                                */ |  | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user