2
0
mirror of https://github.com/gradio-app/gradio.git synced 2024-12-27 02:30:17 +08:00
gradio/js/image
pngwn f9406b46e3
chore: update versions ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-06 08:15:46 -07:00
..
shared Client node fix () 2024-05-09 12:06:28 +01:00
CHANGELOG.md chore: update versions () 2024-06-06 08:15:46 -07:00
Example.svelte Refactors get_fetchable_url_or_file() to remove it from the frontend () 2024-02-26 13:01:00 -08:00
Image.stories.svelte Migrate to Storybook 8 () 2024-03-19 11:22:21 -07:00
Image.test.ts Version 4 development branch () 2023-10-31 04:46:02 +00:00
ImageExample.stories.svelte Refactors get_fetchable_url_or_file() to remove it from the frontend () 2024-02-26 13:01:00 -08:00
Index.svelte Client node fix () 2024-05-09 12:06:28 +01:00
package.json chore: update versions () 2024-06-06 08:15:46 -07:00
README.md Version 4 development branch () 2023-10-31 04:46:02 +00:00

@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;