The calculated distance (air line) between Kranjska Gora and Koper is approximately 63 miles respectively 101 kilometers.
By car or train, the actual journey to Koper is certainly longer, as only the direct route (as the crow flies) between Kranjska Gora and Koper has been calculated here.
Air line (approximately)
101 kilometers
55 nautical miles