strip metadata in a single imagemagick command
This commit is contained in:
		
							parent
							
								
									43b957d98a
								
							
						
					
					
						commit
						cd150f1d6d
					
				@ -74,7 +74,8 @@ class PixelFileHandler extends DataHandlerExtension {
 | 
				
			|||||||
		// convert to bitmap & back to strip metadata -- otherwise we
 | 
							// convert to bitmap & back to strip metadata -- otherwise we
 | 
				
			||||||
		// can end up with 3KB of jpg data and 200KB of misc extra...
 | 
							// can end up with 3KB of jpg data and 200KB of misc extra...
 | 
				
			||||||
		// "-limit memory $mem" broken?
 | 
							// "-limit memory $mem" broken?
 | 
				
			||||||
		exec("convert {$inname}[0] -geometry {$w}x{$h} bmp:- | convert bmp:- -quality {$q} jpg:$outname");
 | 
							exec("convert {$inname}[0] -geometry {$w}x{$h} -strip -quality {$q} jpg:$outname");
 | 
				
			||||||
 | 
							#exec("convert {$inname}[0] -geometry {$w}x{$h} bmp:- | convert bmp:- -quality {$q} jpg:$outname");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		return true;
 | 
							return true;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user