<cms:img>标签

<cms:img>用于图片的缩放,此功能在显示大图缩略图时非常有用,下面是其用法说明:
<cms:img>应用实例:
……
<cms:contentload ...>
<cms:img width="100" height="75" border="0" scaleColor ="CCCCCC" scaleFilter="shadow" alt="图片说明文字">
  <cms:param name="src">
      <cms:contentshow element="pictureElement"/>
    </cms:param>
 </cms:img>
</cms:contentload>

……
<cms:img>标签说明: 
scaleColor :图片缩放后的背景颜色,值为颜色值,如:CCCCCC
scaleFilter:图片缩放后背景CSS过滤器filter,值为所支持的filter值,如shadow,grayscale等。
height:图片缩放后高度
scalePosition:图片缩放后的位置
scaleQuality:图片缩放后的保存质量,值在0-100之间
scaleRenderMode:图片缩放渲染模式
值为:{@link Simapi#RENDER_QUALITY} (默认)
  最好的图片缩放处理,此种模式缩放花费时间较多 
{@link Simapi#RENDER_SPEED}
最快速的图片缩放处理,此种模式缩放后图片质量差
{@link Simapi#RENDER_MEDIUM}
使用JVM中默认的渲染模式,不推荐使用此种模式,因为它与 {@link Simapi#RENDER_QUALITY}模式一样慢
src:图片URL
scaleType:图片缩放类型
width:图片缩放后宽度


用python帮我把下面标签中的有效数据提取出来<annotation> <folder>converted/CMS/2D目标检测/filter</folder> <filename>converted/CMS/2D目标检测/filter_empty_target_img_after_hash2/0/20230401180910649_61.jpg</filename> <source> <database>Unknown</database> <annotation>Unknown</annotation> <image>Unknown</image> </source> <size> <width>1920</width> <height>1536</height> <depth></depth> </size> <segmented>0</segmented> <object> <name>二轮车</name> <truncated>0</truncated> <occluded>0</occluded> <difficult>0</difficult> <bndbox> <xmin>626.38</xmin> <ymin>808.12</ymin> <xmax>650.03</xmax> <ymax>852.04</ymax> </bndbox> <attributes> <attribute> <name>rotation</name> <value>0.0</value> </attribute> <attribute> <name>track_id</name> <value>6</value> </attribute> <attribute> <name>keyframe</name> <value>True</value> </attribute> </attributes> </object> <object> <name>行人</name> <truncated>0</truncated> <occluded>0</occluded> <difficult>0</difficult> <bndbox> <xmin>1612.74</xmin> <ymin>831.51</ymin> <xmax>1627.34</xmax> <ymax>873.8</ymax> </bndbox> <attributes> <attribute> <name>rotation</name> <value>0.0</value> </attribute> <attribute> <name>track_id</name> <value>8</value> </attribute> <attribute> <name>keyframe</name> <value>True</value> </attribute> </attributes> </object> <object> <name>行人</name> <truncated>0</truncated> <occluded>0</occluded> <difficult>0</difficult> <bndbox> <xmin>1469.0</xmin> <ymin>832.96</ymin> <xmax>1489.43</xmax> <ymax>865.8</ymax> </bndbox> <attributes> <attribute> <name>rotation</name> <value>0.0</value> </attribute> <attribute> <name>track_id</name> <value>9</value> </attribute> <attribute> <name>keyframe</name> <value>True</value> </attribute> </attributes> </object> </annotation>
07-20
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值