HEX
Server: LiteSpeed
System: Linux vps338 6.12.0-211.34.1.el10_2.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 15 07:56:02 EDT 2026 x86_64
User: ondernemer (1054)
PHP: 8.3.32
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/ondernemer/public_html/wp-content/themes/dt-the7/inc/helpers/image-functions.php
<?php

defined( 'ABSPATH' ) || exit;

/**
 * Return image proportion.
 *
 * @since 6.7.0
 *
 * @param string|int $width
 * @param string|int $height
 *
 * @return float|int
 */
function the7_get_image_proportion( $width, $height ) {
	$width  = max( (int) $width, 1 );
	$height = max( (int) $height, 1 );

	return $width / $height;
}