How to increase gif quality or resolution in Matlab

22 Ansichten (letzte 30 Tage)
Heli Liu
Heli Liu am 27 Aug. 2020
Kommentiert: Rishabh Mishra am 2 Sep. 2020
Dear friends, I was trying use imwrite to export the gif file, but I found it's hard to increase the resolution of it. How could I increase the quality of gif?

Antworten (1)

Rishabh Mishra
Rishabh Mishra am 2 Sep. 2020
Hi,
GIF use a lossless compression. Therefore, you cannot change the "quality" of gifs. However, you can change the size of the frame of the gif with the steps below:
  1. Import the gif file into the workspace.
  2. Grab the axes object of the gif.
  3. Set axes position something like below
>> axes('Units', 'pixels', 'Position', [10, 10, 100, 200]);
The above code sets position units to ‘pixels’ & position as ‘[10, 10, 100, 200]’.
For more information on ‘axes’ function, refer to this link.
  2 Kommentare
Heli Liu
Heli Liu am 2 Sep. 2020
Thanks Dr Mishra, thank you very much for the comments, but I guess change the size won't solve the resolution problem right?

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by