PeekPic - Get the last saved photo from the gallery with square or circular preview and multiple format selection.

PeekPic
Get the last saved photo from the gallery
with square or circular preview and multiple format selection.


Or select an image, only the formats you set in ImageFormat will be displayed:

GIF_20250909_041334_331


This extension arose from the need to display the last photo saved from the gallery in a camera app when opening the app.

As shown in the following image in the lower left corner:


ImageFormat

Sets the image formats to filter.

  • Accepts a list of formats.
    • Options: 'JPG', 'PNG', 'GIF', 'WEBP', 'BMP', 'ALL'. Default is 'ALL'.

component_set_get

Returns the current image formats filter as a list.


LastPhotoUri

Returns the content URI of the last saved image in the gallery based on the current format filter. Empty string if none found.

component_method (3)


LastPhotoPath

Returns the file path of the last saved image in the gallery based on the current format filter. Empty string if none found.

component_method (7)


UriCroppedImage

Displays the cropped image from the entered URI. Accepts square or circle as the crop type parameter.


PathCroppedImage

Displays the cropped image from the entered path. Accepts square or circle as the crop type parameter.


OpenGallery

Opens the device gallery.

component_method (5)


OpenImagePicker

Opens an image picker that allows selecting an image without closing the app. The selected image URI will be returned via the ImageSelected event.

component_method (4)


AvailableFormats

List of available image formats for filtering.

component_method (6)


ImageSelected

Fires when an image is selected from the picker. Returns the URI of the selected image.

component_event (1)


ImageSelectionError

Fires when there is an error during image selection.


v1.0 Sep 09, 2025.

PeekPic.aia (21.0 KB)

joejsanz.joedevpeekpic.aix (17.7 KB)


JDK: 11
Minimum API Level: 21
Updated On: 2025-09-09T07:00:00Z

Built using: FAST-CLI v4.5.0-premium


Thanks.

5 Likes