<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/handling-webp-images-when-using-phpickerviewcontroller-y1z6vlmck" -->

---
title: Handling WebP Images When Using PHPickerViewController
description: The issue arose because some of the images were in WebP format, and the way to handle image results recommended by Apple did not work for WebP images....
canonical: https://daily.dev/posts/handling-webp-images-when-using-phpickerviewcontroller-y1z6vlmck
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Handling WebP Images When Using PHPickerViewController | daily.dev
og:description: The issue arose because some of the images were in WebP format, and the way to handle image results recommended by Apple did not work for WebP images....
og:url: https://daily.dev/posts/handling-webp-images-when-using-phpickerviewcontroller-y1z6vlmck
og:image: https://api.daily.dev/og/posts/Y1z6vLMck.png
og:image:alt: Handling WebP Images When Using PHPickerViewController
og:image:width: 1200
og:image:height: 630
og:locale: en
---

[Swift Senpai](https://daily.dev/sources/swiftsenpai)

[Read post](https://api.daily.dev/r/Y1z6vLMck)

# [Handling WebP Images When Using PHPickerViewController](https://api.daily.dev/r/Y1z6vLMck "Go to post")

The issue arose because some of the images were in WebP format, and the way to handle image results recommended by Apple did not work for WebP images. Fortunately, resolving the issue is quite straightforward.

[#ios](/tags/ios "Check all #ios posts")

Jul 10, 2023•3m read time•From [swiftsenpai.com](https://api.daily.dev/r/Y1z6vLMck "swiftsenpai.com")

[![Post cover image](https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4c227cb289803fe875d5a7c06c26915f?_a=AQADKdt)](https://api.daily.dev/r/Y1z6vLMck "Go to post")

Table of contents

[Why Does It Fail?](https://api.daily.dev/r/Y1z6vLMck "Why Does It Fail?")[How to Handle WebP Images When Using PHPickerViewController?](https://api.daily.dev/r/Y1z6vLMck "How to Handle WebP Images When Using PHPickerViewController?")[Adding WebP Support to NSItemProvider](https://api.daily.dev/r/Y1z6vLMck "Adding WebP Support to NSItemProvider")[Further Readings](https://api.daily.dev/r/Y1z6vLMck "Further Readings")

7 Impressions

Comment

Bookmark

Copy

![Placeholder image for anonymous user](https://media.daily.dev/image/upload/s--qsFuKGv_--/t_logo,f_auto/public/noProfile)Share your thoughtsPost

[![Swift Senpai's image](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/18c570c17ff84c01b933a1559e428a5d)](https://daily.dev/sources/swiftsenpai)

[Swift Senpai](https://daily.dev/sources/swiftsenpai "https://daily.dev/sources/swiftsenpai")

Swift Senpai's platform covers topics related to Swift programming language, iOS app development, a... Read more

13 Followers

•

5 Upvotes

#### Would you recommend this post?

Copy link

WhatsApp

Facebook

X

New Squad

Copy linkShare with your friends

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Handling WebP Images When Using PHPickerViewController","url":"https://daily.dev/posts/handling-webp-images-when-using-phpickerviewcontroller-y1z6vlmck","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/handling-webp-images-when-using-phpickerviewcontroller-y1z6vlmck"},"datePublished":"2023-07-10T07:26:09.918Z","dateModified":"2023-07-20T14:15:11.734Z","description":"The issue arose because some of the images were in WebP format, and the way to handle image results recommended by Apple did not work for WebP images....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4c227cb289803fe875d5a7c06c26915f?_a=AQADKdt","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4c227cb289803fe875d5a7c06c26915f?_a=AQADKdt","isAccessibleForFree":true,"articleSection":"Swift Senpai","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Swift Senpai","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/18c570c17ff84c01b933a1559e428a5d","url":"https://daily.dev/sources/swiftsenpai"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/handling-webp-images-when-using-phpickerviewcontroller-y1z6vlmck","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ios","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Swift Senpai","item":"https://daily.dev/sources/swiftsenpai"},{"@type":"ListItem","position":3,"name":"Handling WebP Images When Using PHPickerViewController"}]}
```

