Home
last modified time | relevance | path

Searched refs:ratio_x (Results 1 – 2 of 2) sorted by relevance

/imagick/
H A Dimagick_helpers.c189 double ratio_x, ratio_y; in php_imagick_thumbnail_dimensions() local
195 ratio_x = (double) desired_width / (double) orig_width; in php_imagick_thumbnail_dimensions()
199 if (ratio_x == ratio_y) { in php_imagick_thumbnail_dimensions()
202 } else if (ratio_x < ratio_y) { in php_imagick_thumbnail_dimensions()
205 *new_height = ratio_x * ((double) orig_height); in php_imagick_thumbnail_dimensions()
208 *new_height = im_round_helper(ratio_x * ((double) orig_height)); in php_imagick_thumbnail_dimensions()
H A Dimagick_class.c7929 double ratio_x, ratio_y; local
7932 ratio_x = ((double) desired_width / (double) orig_width);
7935 if (ratio_x > ratio_y) {
7939 temp_new_height = (long)(ratio_x * (double)orig_height);
7942 temp_new_height = im_round_helper_class(ratio_x * (double)orig_height);

Completed in 38 milliseconds