I'm looking for the way to get big facebook video thumbnail.
i've found some links:
http://graph.facebook.com/1571886379501082/picture
~> this one retun one small thumbnail picture with size 128x128.
and other one
http://graph.facebook.com/1571886379501082/thumbnails
~> this one will return big thumbnail picture but it required access_token to get.
is it possible to get big thumbnail video picture without login on facebook?
When the first URL is hit, the link is refering to
https://fbcdn-vthumb-a.akamaihd.net/hvthumb-ak-xfa1/v/t15.0-10/p128x128/10876207_805883852835396_1769147834_n.jpg?oh=a755047c692902070f8d9bd79ce28453&oe=56396042&gda=1451498989_6c4cbd42045490d0935990d6627905ed
For large thumbnail you have to change the size 128x128 to 552x414
https://fbcdn-vthumb-a.akamaihd.net/hvthumb-ak-xfa1/v/t15.0-10/s552x414/10876207_805883852835396_1769147834_n.jpg?oh=09f92535e931ff2269a7ae4d31c03d5b&oe=563FEF44&gda=1451103467_d60d0b95c7e93f9c9046a0eeeca24c5e
Kindly figure out with regular expression or something else for proper usage but the above URL works for me.
This method will create an object array and seek the last key of the format, which is the big image.
$fb = file_get_contents('http://graph.facebook.com/1246538155392772');
$fb = json_decode($fb);
//---find the big image which is always last in array
$key = count($fb->format)-1;
$bigimg = $fb->format[$key]->picture;
echo '<img src="'.$bigimg.'" />';
If you just want to get the image for simple posting, just use this tool. Get Facebook Video Images
Related
I am not sure if this is the right forum for asking this question, but I googled "questions related to iPhone" and the first page had SO from top to bottom. So here goes.
When I open the Photos Application in iPhone (3GS, 4 and 5 all running iOS 5.0) and open an image, first a blurred image appears for a fraction of a second, which clears up into the actual picture. My question is, does the Photo application have a low resolution copy of the high res images which it displays while the image is being loaded, OR does it generate a low res image on the fly before going on to load the high res image.
I am writing an application to browse through the photos, and need to know which is the best approach. That is the purpose behind this question.
The best way is using ALAsset thumbnail . If you have concerns with image clarity, then go with ALAsset fullResolutionImage
Here are some details that you must read before going to start developing an photos application.
An instance of ALAssetsLibrary provides access to the videos and photos that are under the control of the Photos application.
An ALAsset object represents a photo or a video managed by the Photo application.
There are different ALAsset Accessing Representations
1.thumbnail
Returns a thumbnail representation of the asset.
- (CGImageRef)thumbnail
2.aspectRatioThumbnail
Returns an aspect ratio thumbnail of the asset.
- (CGImageRef)aspectRatioThumbnail
3.defaultRepresentation
Returns an asset representation object for the default representation.
- (ALAssetRepresentation *)defaultRepresentation
4.representationForUTI:
Returns an an asset representation object for a given representation UTI.
- (ALAssetRepresentation *)representationForUTI:(NSString *)representationUTI
An ALAssetRepresentation object encapsulates one of the representations of a given ALAsset object.
1.CGImageWithOptions:
Returns a full resolution CGImage of the representation.
- (CGImageRef)CGImageWithOptions:(NSDictionary *)options
2.fullResolutionImage
Returns a CGImage representation of the asset.
- (CGImageRef)fullResolutionImage
3.fullScreenImage
Returns a CGImage of the representation that is appropriate for displaying full screen.
- (CGImageRef)fullScreenImage
Sample Code
I would like to share an image between two users using parse.com. My original idea was to simple pass the image url from the first user to the second to view/download. I have no issue uploading the image to parse.com , however I can't work out how to return the url. Is it possible to return the url?
There seems to be a solution for this on android Get link to image file at Parse.com but I can't find one for iphone.
Thanks in advance
In the Image save example of Parse.com, I found the image url.
In - (void)setUpImages:(NSArray *)images method,
PFFile *theImage = [eachObject objectForKey:#"imageFile"]; will return image file object with its URL.
Hope this will help you.
I am developing a unity app, in which i call webservice for image url and after getting those url, i call one by one url for image downloading and store those images onto disks, and after in some point i read those images from disks and show as texture, but i am getting problem in reading images. It show me Question mark on texture and when i dig more to find out problem i got that i am getting zero of image using www.size and text also nil using www.text. I am doing following for reading and writing images.
Writing
if(wwwMarker.isDone)
File.WriteAllBytes(Application.persistentDataPath + "/"+ data.markerName + ".jpg", wwwMarker.bytes);
Reading
//fileurl is string which contain path of file
fileUrl = (Application.persistentDataPath + "/"+ markerDataObject.markerName + ".jpg");
if(System.IO.File.Exists(fileUrl))
if(www.isDone)
video.mIconPlane.renderer.material.mainTexture = imageToLoadPath.texture;
But when i read this code and show render image on texture it show me Question mark image, but when i load images from assets it works perfectly fine. Please help me that where i am doing wrong. I am nee bee in unity so thats why doing silly mistakes. This will be great for me. Thanks in advance.
Note, that unity's WWW can only dowload and save as textures JPG and PNG images. If you will try to download an image of any other format, you will get a red "?" image as result.
I have a photo editing app where I want to provide a way for the user to edit photos from the pasteboard. For example the user might copy a photo from his website in Safari and then head over to my app and choose "Open from pasteboard". Kind of like Photoshop does it.
How can I get notified or check if there is a picture or graphic (probably a UIImage) in the pasteboard? And how could I obtain that image?
I needed one for a UIImage and this snippet helped me out.
You can always extract the image out using:
UIImage *image = [UIPasteboard generalPasteboard].image;
Is there any way to create an array or something
having paths of all the images stored in camera roll.
Please enlighten me on this.
Thnx in advance
SpyPhone uses a direct path to the users photo library:
http://github.com/nst/spyphone/
It seems that any application can read it. However, this seems like falls under the area of "undocumented API" and could well be rejected in a real application.
I don't think there is. As far as the API is concerned for the UIImagePickerController you can only get a single path for a Movie that was recorded by the user (if running 3.0 on a 3GS). And even that path is a file URL to the temporary folder where the movie is stored before being written to the library.
You can't get paths for any images in the photo library or the camera roll.
When you pick an image using the UIImagePickerController the controller returns the Original Image and an "Edited Image" if the image was edited before being chosen.