Difference between revisions of "Image magic manipulations"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (Created page with "(fish shell format)   for file in *     convert -colorspace RGB $file -verbose -density 150 -quality 100 ../Plans2/(basename $file .pdf).jpg   end")  | 
				|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
(fish shell format)  | (fish shell format)  | ||
PDF to jpg somewhat preserving color, and high res.  | |||
   for file in *  |    for file in *  | ||
     convert -colorspace RGB $file -verbose   |      convert -colorspace RGB -density 150 $file -verbose -quality 100 ../Plans2/(basename -s .pdf $file).jpg  | ||
   end  |    end  | ||
(fish shell format)  | |||
  cd Originals; mkdir ../Converted  | |||
  for file *  | |||
    convert $file -gravity south -extent x85% -background black -resize 1669x962 -gravity center -extent 1669x962 ../Converted/$file  | |||
    imgcat ../Converted/$file  | |||
  end  | |||
Turn a vertical image into horizontal orientation, by bluring the center and using it as a background.  | |||
  mkdir Small Blur Result  | |||
  convert $i -resize 1669x -gravity center -extent 1669x962 -blur 0x30 Blur/$i  | |||
  convert $i -resize 1669x962 Small/$i  | |||
  composite -gravity center Small/$i Blur/$i Result/$i  | |||
Latest revision as of 13:46, 28 December 2016
(fish shell format) PDF to jpg somewhat preserving color, and high res.
for file in * convert -colorspace RGB -density 150 $file -verbose -quality 100 ../Plans2/(basename -s .pdf $file).jpg end
(fish shell format)
cd Originals; mkdir ../Converted for file * convert $file -gravity south -extent x85% -background black -resize 1669x962 -gravity center -extent 1669x962 ../Converted/$file imgcat ../Converted/$file end
Turn a vertical image into horizontal orientation, by bluring the center and using it as a background.
mkdir Small Blur Result convert $i -resize 1669x -gravity center -extent 1669x962 -blur 0x30 Blur/$i convert $i -resize 1669x962 Small/$i composite -gravity center Small/$i Blur/$i Result/$i