photo

Image resize quality (Java) [closed]

China☆狼群 提交于 2019-11-28 17:59:37
I have an open-source app which uploads photos to Facebook. To save bandwidth, the photos are automatically resized before uploading (Facebook imposes a maximum size limit). A few people have complained about the photo quality, and in fact you can see the difference (see this issue for some demo images). So my question is, what is the "best" way of scaling down images (i.e. photos) in Java without losing quality, or at least, with minimal quality loss / artifacts? You can see the current code I have here (resize code via this page ). I've tried it all - including the tricks here , and all I

Swift Photo Library Access

社会主义新天地 提交于 2019-11-28 12:51:10
I would like to access photos from the user's photo library in my app and I was looking at the UIImagePickerController to do so. However, I was wondering if it is possible to access and view the photos from the photo library without actually storing those photos in the app? So basically the app would store references to the selected photos, rather than storing the photos themselves. This is to prevent the app from taking up large amounts of space from storing each photo. Thanks! It is not so simple but as mentioned by Rob you can save the photo asset url and later fetch it using the Photos

PHP - Upload a web hosted photo to facebook album via Graph API

安稳与你 提交于 2019-11-28 11:44:20
I'm trying to upload www hosted (e.g. http://www.google.se/intl/en_com/images/srpr/logo1w.png ) files to a facebook album. Creating an album works just fine, but I don't seem to uploading any photos. I'm using the facebook php-sdk ( http://github.com/facebook/php-sdk/ ) and the examples I already tried are: Upload Photo To Album with Facebook's Graph API How can I upload photos to album using Facebook Graph API I'm guessing CURL uploads perhaps only can manage locally stored files and not web hosted ones. Here's my code: /* Try 1: $data = array(); $data['message'] = $attachment->post_title;

Randomization in Qualtrics using Photos or Graphics and Loop and Merge

你。 提交于 2019-11-28 11:34:39
I am creating a survey in Qualtrics with many photos, say 1000. I want to have each survey participant answer, say 6, questions per photo. Each participant will see 5 photos that are randomly assigned. Before looking into things, I assumed that there would be a way to upload the 1000 photos, create one block in Qualtrics (with the 6 questions) and then simply randomize the photo that occurs and have this be repeated this 5 times. But it seems like this is either not possible or not obvious. I called Qualtrics and they said that I would manually need to create 1000 blocks (each block would be

extract all video frames in Android

给你一囗甜甜゛ 提交于 2019-11-28 10:24:08
I recorded a Video for limited time. Now i want to fetch all frames of video. I am using the below code and by using it i am able to get frames but i am not getting all video frames. 3 to 4 frames are repeated then i got a different frame. But as we all know we can get 25- 30 frames in a second to display smooth video. How to get all frames. for (int i = 0; i < 30; i++) { Bitmap bArray = mediaMetadataRetriever.getFrameAtTime( 1000000 * i, MediaMetadataRetriever.OPTION_CLOSEST); savebitmap(bArray, 33333 * i); } I don't want to use NDK. I got this link don't know what should be the value for

Can I take a photo in Unity using the device's camera?

こ雲淡風輕ζ 提交于 2019-11-28 09:44:46
I'm entirely unfamiliar with Unity3D's more complex feature set and am curious if it has the capability to take a picture and then manipulate it. Specifically my desire is to have the user take a selfie and then have them trace around their face to create a PNG that would then be texture mapped onto a model. I know that the face mapping onto a model is simple, but I'm wondering if I need to write the photo/carving functionality into the encompassing Chrome app, or if it can all be done from within Unity. I don't need a tutorial on how to do it, just asking if it's something that is possible.

Upload photos for past date

半城伤御伤魂 提交于 2019-11-28 07:42:29
I am trying to upload few old photos with a past creation date so that they appear properly in timeline. Existing api allows only to pass message and source. i.e POST https://graph.facebook.com/ALBUM_ID/photos?access_token=xyz ..multipart.form.data.with.message.and.source.. is the only way I can upload photos. POST https://graph.facebook.com/PHOTO_ID?access_token=xyz created_time=2010-01-20T09:04Z&updated_time=2010-01-20T09:04Z doesn't move the photo date either. I tried creating a post out of the photo upload using the /feed api, but it doesn't allow me to make an existing photo a post. It

Android: how to get all folders with photos?

余生长醉 提交于 2019-11-28 04:47:47
I trying to make a gallery. I know how to get all photos and to show them in grid view. But can someone explain how to get and show folders(with photos)? i've got error after launching my apk file. look plz at my xml files, may be something wrong here??? gridview.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <GridView android:id="@+id/gridView" android:layout_width="fill_parent" android:layout_height="wrap_content

photo alignment with graph in r

旧巷老猫 提交于 2019-11-28 04:33:20
First I thought I need to it manually in powerpoint, then I thought may be try with R, if there is a solution. Here is my example data: set.seed(123) myd<- expand.grid('cat' = LETTERS[1:5], 'cond'= c(F,T), 'phase' = c("Interphase", "Prophase", "Metaphase", "Anaphase", "Telophase")) myd$value <- floor((rnorm(nrow(myd)))*100) myd$value[myd$value < 0] <- 0 require(ggplot2) ggplot() + geom_bar(data=myd, aes(y = value, x = phase, fill = cat), stat="identity",position='dodge') + theme_bw() Here is what output should look like: The jpeg image can be randomly generated (to demo examples) or example

Upload image with facebook API

不羁的心 提交于 2019-11-28 02:12:28
问题 Question: How to upload an image from my webserver to facebook via FB API? I'm writing an application that retrieves images from the user's photo album, makes some modifications (e.g. adding a watermark) then send it back to photo album. The code I use to upload the photo is as follows <?php include_once("api/facebook.php"); include_once("config.php"); include_once("utils.php"); include_once("bemyfans.php"); $facebook=new Facebook($api_key,$app_secret); $facebook->require_frame(); $user=