App Store 和 iTunes API:获取图标
我正在使用这样的请求:
http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/wa/wsLookup?country=ru&id=
它显示有关来自 Apple App Store 的应用程序的信息,但我在图标方面遇到了一些问题。
如果我获取属性artworkUrl60,它的 60x60 图像太小,但它更圆。 使用 artworkUrl100 时,我得到的 512x512 图像太大,不圆润,当我将其尺寸缩小到 100x100 时,它看起来很丑。
如何获得漂亮的圆形 100x100 图像?
I am using request like this:
http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/wa/wsLookup?country=ru&id=
It shows information about the app from the Apple App Store but I have some problems with icons.
If i'm getting property artworkUrl60 it is too small 60x60 image, but it is rounder.
And with artworkUrl100 I'm geting 512x512 image that is too big, not rounded and looks ugly when I'm sizing it down to 100x100.
How can I can get nice looking rounded 100x100 image?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须获取
artworkUrl512
,然后将“.png”或“.jpg”替换为特定尺寸“.100x100-75.png”或“.100x100-75.jpg”另请参阅列出所有可用的图像格式(png/jpg):
You must get
artworkUrl512
and then replace ".png" or ".jpg" with specific size ".100x100-75.png" or ".100x100-75.jpg"See also list all available image formats (png / jpg):
https://itunes.apple.com/lookup?id=1036264023
根据 iTunes Search API 中的文档:
https://affiliate.itunes.apple .com/resources/documentation/itunes-store-web-service-search-api/
https://itunes.apple.com/lookup?id=1036264023
As per documentation in iTunes Search API :
https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/
我使用 JQuery 并将 ui-corner-all 类添加到图像中,使它们具有圆角。这适用于任何尺寸的图像。
I use JQuery and add the
ui-corner-all
class to images to make them have rounded corners. This works for any size image.