For openSUSE Leap 42.3 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/spins:invis:stable/openSUSE_Leap_42.3/spins:invis:stable.repo
zypper refresh
zypper install php5-gd
For openSUSE Leap 42.2 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/spins:invis:stable/openSUSE_Leap_42.2/spins:invis:stable.repo
zypper refresh
zypper install php5-gd
For openSUSE 42.1 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/spins:invis:stable/openSUSE_42.1/spins:invis:stable.repo
zypper refresh
zypper install php5-gd
For openSUSE 13.1 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/spins:invis:stable/openSUSE_13.1/spins:invis:stable.repo
zypper refresh
zypper install php5-gd