<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>identify &#8211; moneyslow.com</title>
	<atom:link href="https://moneyslow.com/tag/identify/feed" rel="self" type="application/rss+xml" />
	<link>https://moneyslow.com</link>
	<description>making money with technology</description>
	<lastBuildDate>Mon, 23 Aug 2021 00:01:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.4</generator>
	<item>
		<title>identify 判断图片宽高相反解决办法</title>
		<link>https://moneyslow.com/identify-%e5%88%a4%e6%96%ad%e5%9b%be%e7%89%87%e5%ae%bd%e9%ab%98%e7%9b%b8%e5%8f%8d%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95.html</link>
		
		<dc:creator><![CDATA[moneyslow]]></dc:creator>
		<pubDate>Sat, 21 Aug 2021 13:13:59 +0000</pubDate>
				<category><![CDATA[newest]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[identify]]></category>
		<category><![CDATA[imagemagick]]></category>
		<guid isPermaLink="false">https://moneyslow.com/?p=13870</guid>

					<description><![CDATA[identify 命令可以判定图片宽度高度信息 # identify 33.jpeg 33.jpeg JPEG 842x653 842x653+0+0 8-bit sRGB 139KB 0.000u 0:00.000 但实际上这个图片显示是相反的方向 宽653 高842 所以identify 这样判断图片的宽度和高度是相反的。什么原因呢？ 其实并不是identify判断的有问题，而是没有取全图片的参数，图片的exif信息中有一项为orientation表示方向。 大白话解释就是你的宽高是从那个点开始计算的。 Exif的Orientation信息说明: 判断值： identify -format '%[exif:orientation]' xxx.jpeg 输出结果为 6 可能出现的数值也就是 1，3，6，8 1和3分别未0和180度，不会颠倒宽高，只需要处理是6和8的情况。 解决方案： 用convert 命令，判断图片的方向是为6或8时，使用-auto-orient 把6 改为1 shell 代码如下： orientation1=`identify -format '%[exif:orientation]' $i` echo "orientation1 is: " $orientation1 if [ [ $orientation1 -eq 6 ] [&#8230;]]]></description>
		
		
		
			</item>
	</channel>
</rss>
