Skip to content

Instantly share code, notes, and snippets.

View Barbatosso's full-sized avatar
🗺️
Exploring the world

Egor Petrov Barbatosso

🗺️
Exploring the world
View GitHub Profile
<!--
Downloaded via https://llm.codes by @steipete on October 5, 2025 at 07:08 PM
Source URL: https://docs.langchain.com/oss/python/langchain/overview
Total pages processed: 73
URLs filtered: No
Content de-duplicated: No
Availability strings filtered: No
Code blocks only: No
-->
@Barbatosso
Barbatosso / UIImage+isWideGamut.swift
Created August 3, 2022 04:56
Helper to clarify if an image uses P3 or sRGB
import UIKit
extension UIImage {
var isWideGamut: Bool {
return self.cgImage?.colorSpace?.isWideGamutRGB ?? false
}
}