Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
			
		
		
			
				
																			
								akapap  							 
									
						
		
						
						
		 
		
						
					
													
							
						
									
						Post 
					 
								by akapap   »  2010-02-26T03:49:44-07:00 
			
			
			
			
			
			Hi,
how to achieve sth like that with imagemagick:
 
default option watermark only overlay logo. I'd like to make watermark more swelling.
Best regards.
 
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								Bonzo 							 
									
		Posts:  2971  		Joined:  2006-05-20T08:08:19-07:00 		
		
											Location:  Cambridge, England 
							
						
		 
		
						
					
													
							
						
									
						Post 
					 
								by Bonzo   »  2010-02-26T08:50:16-07:00 
			
			
			
			
			
			Modify this code:
Code: Select all 
<?php
$size = getimagesize("input.jpg");
// Size for watermark
$width = $size[0]*.9;
$height = $size[0]*.25;
$cmd = "-size {$width}x{$height} -background none -font Utopia-bold -fill white ".
" -gravity center caption:\"Copyright of Rubblewebs\" -shade 240x40";
echo $cmd;
// Create the watermark
exec("convert $cmd font.png ");
exec("composite -watermark 30% -gravity south font.png input.jpg embossed.png");
?>
I use php and this code automaticaly resizes the watermark to fit the image size but you should be able to modify it to what you want.
The code creates an image with the text then overlays it over the image.
 
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
		
			
				
								fmw42 							 
									
		Posts:  25562  		Joined:  2007-07-02T17:14:51-07:00 		
		
											Authentication code:  1152 
												Location:  Sunnyvale, California, USA 
							
						
		 
		
						
					
													
							
						
									
						Post 
					 
								by fmw42   »  2010-02-26T10:06:43-07:00 
			
			
			
			
			
			see my script, bumptext at the link below