Questions tagged [media-library]
209 questions
2
votes
0 answers
React Native Expo Media Library "This file type is not supported yet" for PNG and JPG
Im working on React Native - Expo App and i can't successfully create assets for images on iOS using the MediaLibrary and I get the error:
"This file type is not supported yet"
This works perfectly fine for Android.
The code is pretty…

Ignacio Vazquez
- 21
- 1
2
votes
1 answer
FileSystem.writeAsStringAsync crashes
Overview
SDK Version: 41
Platforms: Android
I've just updated my expo application from 40 to 41 and then this line of code started to crash:
await FileSystem.writeAsStringAsync(filename, aux, {
encoding:…

Marcos Paulo Júnior
- 355
- 1
- 4
- 14
2
votes
2 answers
I am unable to access audio files on ios using expo-media-library
I'm trying to fetch all the songs on a user's phone using expo-media-library like this:
const getAudioFiles = async () => {
let media = await MediaLibrary.getAssetsAsync({
mediaType: "audio",
});
media = await…

adedaniel
- 41
- 4
2
votes
1 answer
Wordpress Media Library select multiple images on click
I have enqueued wp_enqueue_media(); on the frontend.
I have dded two kind of buttons, one for single selection and the second for multiple images selection
if($(this).hasClass('multiple-image-button')) {
// Set the wp.media attributes
…

Nash
- 285
- 2
- 15
2
votes
1 answer
How can I crop different images using Laravel Varbox?
I am using Varbox inside one of my Laravel projects.
I have a custom entity called Post.
Each post can have a main_image and a cover_image.
How can I define different styles for those 2 image types using Varbox Media Library?
I saw there's a…

andreiradoi
- 25
- 5
2
votes
1 answer
Images in Page attachments vs Media library Kentico
When we are hosting kentico application in cloud let's say Azure, We configure blob storage and the media library files lets say images reside in Azure blob.
Now while fetching those files we also configure Azure CDN and the some caching techniques…

Sultan
- 133
- 3
- 21
2
votes
3 answers
Expo: MediaLibrary.createAlbumAsync is creating multiple album with same name
my function:
async function takePhotoNStore(){
if(cameraRef){
let picture = await cameraRef.current.takePictureAsync();
const asset = await MediaLibrary.createAssetAsync(picture.uri);
await…

shuuz zz
- 21
- 1
- 3
2
votes
0 answers
Sitecore images in the Media Library are not displaying in Page Editor on CM instance, but appear in the Media Library and on CD instance
I have a bizarre issue with one of my Sitecore sites. Most (but not all) of the images in the Media Library are not displaying in Page Editor/CM. When I view my site in Page Editor or go to mysite.prod-cm.com, the images just show the broken image…

Erica Stockwell-Alpert
- 4,624
- 10
- 63
- 130
2
votes
3 answers
Kentico Media Library not syncing with MVC project
I'm using Kentico 9 with MVC. When I add a image to the media library it is not copied to the MVC application. I am using the default media library location which resolves to ~/site/media but the image is only accessible from the admin domain.…

Dashon
- 31
- 5
2
votes
2 answers
Wordpress select image from Media Library
I create one theme for wordpress and on admin panel, I need to select image (Logo) from media library by admin site. I use this code but not work:

Milad Ghiravani
- 1,625
- 23
- 43
2
votes
0 answers
MLMediaLibrary video URL for 'Live Photos' macOS 10.13
I'm using MLMediaLibrary on macOS 10.13 to access the media from the Apple Photos app (local photos library).
I can get all necessary file URLs (edited, original,thumbnail image) from the NLMediaObject. I can even get the video URL for unedited…

steve1ae
- 91
- 4
2
votes
0 answers
WordPress media library, change existing URLS to AWS s3
I am having trouble mass changing the locations in WordPress for the images.
I have ran this request in PHPMyAdmin
UPDATE wp_posts SET guid = replace(guid, ‘http://www.oldsite.com’,’http://www.newsite.com’);
UPDATE wp_posts SET post_content =…

JamesG
- 1,552
- 8
- 39
- 86
2
votes
2 answers
Save an image from canvas to WordPress media library (or server)
I am trying to implement functionality that allows users to save a png generated on a canvas element into a WordPress media library, or at least on the server (this is an intermediate step to sharing the image on facebook, which requires a valid…

tx291
- 1,251
- 6
- 24
- 42
2
votes
1 answer
How do I access the title of an iTunes song using MLMediaLibrary and Swift on macOS?
I'm using Apple's MediaLibrary framework on macOS, to write an application that reads in information on every song in my iTunes library.
I'm able to extract the artist of a song, using MLMediaObjectArtistKey as a key in the attributes dictionary…

Albertsen
- 155
- 2
- 9
2
votes
3 answers
Sitecore: How can I get a Media Library item by URL?
I'm trying to build an image sitemap for my site. The way I am doing this is for each page in the Sitemap, I load the page and parse out all of the image tags in the HTML. Here's a brief snippet:
var htmlImgTags =…

Erica Stockwell-Alpert
- 4,624
- 10
- 63
- 130