A
A
Andrey Ch2018-10-27 19:42:54
Mathematics
Andrey Ch, 2018-10-27 19:42:54

How to find out the size of the picture when proportionally reducing the size of the inner area?

Please help. It is necessary to determine the size of the picture with a proportional decrease in the size of the inner area. More details in the picture:
5bd4963691424657841057.jpeg
I just can't figure out what formula. How to determine the width and height of an image after resizing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AngReload, 2018-10-27
@Andchir

соотношение = новая_ширина_фрагмента / старая_ширина_фрагмента
новая_ширина_изображения = соотношение * старая_ширина_изображения
новая_высота_изображения = соотношение * старая_высота_изображения

addition, for a disproportionate resize:
соотношение_ширины = новая_ширина_фрагмента / старая_ширина_фрагмента
соотношение_высоты = новая_высота_фрагмента / старая_высота_фрагмента

новая_ширина_изображения = соотношение_ширины * старая_ширина_изображения
новая_высота_изображения = соотношение_высоты * старая_высота_изображения

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question