get_ingredient_image_small

MealDB.get_ingredient_image_small(ingredient)

Fetches and saves a small-size ingredient image locally.

Parameters

Name Type Description Default
ingredient str The ingredient name (e.g., ‘tomato’, ‘chicken’). required

Returns

Name Type Description
bool True if the image was successfully fetched and saved, False otherwise.

Raises

Name Type Description
httpx.HTTPError If the HTTP request fails.
httpx.HTTPStatusError If the API returns a non-2xx status code.