gradio/js/image
2024-12-05 23:51:30 +00:00
..
shared Refactor full screen logic to be reusable (#10098) 2024-12-05 23:51:30 +00:00
CHANGELOG.md chore: update versions (#10082) 2024-12-04 15:04:48 -08:00
Example.svelte
Image.stories.svelte Fix image height content fit (#9116) 2024-08-21 18:41:40 +01:00
Image.test.ts Fix published package exports (#9163) 2024-08-22 16:38:45 +00:00
ImageExample.stories.svelte
Index.svelte add webcam_height and webcam_width to specify the resolution of the Webcam (#10032) 2024-12-03 19:01:47 -05:00
package.json chore: update versions (#10082) 2024-12-04 15:04:48 -08:00
README.md

@gradio/image

<script>
	import { BaseImageUploader, BaseStaticImage, Webcam, BaseExample } from "@gradio/image";
</script>

BaseImageUploader

	export let sources: ("clipboard" | "webcam" | "upload")[] = [
		"upload",
		"clipboard",
		"webcam"
	];
	export let streaming = false;
	export let pending = false;
	export let mirror_webcam: boolean;
	export let selectable = false;
	export let root: string;
	export let i18n: I18nFormatter;

BaseStaticImage

	export let value: null | FileData;
	export let label: string | undefined = undefined;
	export let show_label: boolean;
	export let show_download_button = true;
	export let selectable = false;
	export let show_share_button = false;
	export let root: string;
	export let i18n: I18nFormatter;

Webcam

	export let streaming = false;
	export let pending = false;

	export let mode: "image" | "video" = "image";
	export let mirror_webcam: boolean;
	export let include_audio: boolean;
	export let i18n: I18nFormatter;

BaseExample

	export let value: string;
	export let samples_dir: string;
	export let type: "gallery" | "table";
	export let selected = false;