gradio/js/image
Hannah 458941c508
Allow full screen mode in interactive gr.Image (#10054)
* allow full screen mode in interactive image

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-27 15:03:12 -05:00
..
shared Allow full screen mode in interactive gr.Image (#10054) 2024-11-27 15:03:12 -05:00
CHANGELOG.md chore: update versions (#9908) 2024-11-15 16:16:39 -08:00
Example.svelte
Image.stories.svelte
Image.test.ts Fix published package exports (#9163) 2024-08-22 16:38:45 +00:00
ImageExample.stories.svelte
Index.svelte 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
package.json chore: update versions (#9908) 2024-11-15 16:16:39 -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;