フィルターのクリア

How to save a web url as an image with specific size?

3 ビュー (過去 30 日間)
Salad Box
Salad Box 2017 年 11 月 18 日
コメント済み: Salad Box 2017 年 11 月 20 日
Hi,
I have a cell (10 by 1) with 10 urls, each of which leads to an image file. But those images are in different sizes.
I would like to save these 10 urls as images (.png) but into same size, say 300 x300 pixels.
Do I save the images in their original sizes first then resize each of them or can I use 'websave' to achieve 1) save the image and 2) resize the image both in one go?
Thanks in advance!

採用された回答

Walter Roberson
Walter Roberson 2017 年 11 月 18 日
You will probably need to fetch the images and imresize() them.
Sometimes web sites allow you to pass parameters that specify the size of the output file you want, but there is no standard for that and it is common that you can only specify one of the sizes the site has pre-arranged.
  1 件のコメント
Salad Box
Salad Box 2017 年 11 月 20 日
Thank you for your answer.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by