![]() 125 sec, ISO 200ĭeclare `convert -ping "$infile" -format "cameramodel=%\n focallenght35=%\n fnumber=%\n exptime=%\n isospeed=%\n" info:`Įxptime=`echo "scale=0 $exptime2/$exptime1" | bc`Įcho "CameraModel=$cameramodel, FocalLengthIn35mmFilm: $focallenght35 mm, F$fnumber, 1/$exptime sec, ISO $isospeed"ĬameraModel=DMC-FZ30, FocalLengthIn35mmFilm: 35 mm, F2. Isospeed=`identify -ping -format "%" "$infile"`įnumber=`echo "scale=1 $fnumber1/$fnumber2" | bc`Įxptime=`echo "scale=3 $exptime1/$exptime2" | bc`Įcho "CameraModel=$cameramodel, FocalLengthIn35mmFilm: $focallenght35 mm, F$fnumber, $exptime sec, ISO $isospeed"ĬameraModel=DMC-FZ30, FocalLengthIn35mmFilm: 35 mm, F2.8. infile="P1050001.JPG"Ĭameramodel=`identify -ping -format "%" "$infile"`įocallenght35=`identify -ping -format "%" "$infile"`įnumber1=`identify -ping -format "%" "$infile" | cut -d/ -f1`įnumber2=`identify -ping -format "%" "$infile" | cut -d/ -f2`Įxptime1=`identify -ping -format "%" "$infile" | cut -d/ -f1`Įxptime2=`identify -ping -format "%" "$infile" | cut -d/ -f2` This works fine for me in Imagemagick 6.9.9.29 Q16 Mac OSX. exiftool -s3 -T -model -FocalLengthIn35mmFormat -FNumber -ExposureTime -ISO "$infile" | tr "\t" " " So one could use tr to replace tabs with spaces. ![]() infile="P1050001.JPG"Įxiftool -s3 -T -model -FocalLengthIn35mmFormat -FNumber -ExposureTime -ISO "$infile" However, this makes the output in tab delimited format. But I do not see a space delimited output format. I am not an expert on EXIFTOOL, so perhaps I have missed something. Be very careful when passing an user provided argument to IM in a script, insuring that the argument is what you expect. ![]() There may be other internal EXIFTOOL formatting options. Or if you do not want the header line: exiftool -csv -model -FocalLengthIn35mmFormat -FNumber -ExposureTime -ISO "$infile" | tail -n +2 | tr "," " " Is there a Convert switch+argument that would do this Suggestions much appreciated as to the correct syntax. SourceFile Model FocalLengthIn35mmFormat FNumber ExposureTime ISO In the script that's driving these conversions, I could certainly add a step that launches ExifTool and uses its 'tagsfromfile' switch to transfer the information, but it would be handier if it could be done in the Convert.exe step. One way on unix is simply to use tr to replace the command with a space as follows: exiftool -csv -model -FocalLengthIn35mmFormat -FNumber -ExposureTime -ISO "$infile" | tr "," " " csv, how do I get rid of the comma and replace them with spaces? Jzxu wrote: This is fine, too, however, I noticed the parameter I don't know how to get exif info via using command ? who can help me ? Thanks. => 1631, 1223, 1795, 1077īut now my server does not install imagick.so extension and I am not a server administrator。 Code: Select all $im->getImageProperties("exif:*")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |