photo

Can't upload file using XAMPP

邮差的信 提交于 2019-12-24 13:08:45
问题 I have to create a CMS for a webstore for a webscript unit i'm taking. I have to upload a photo of the product but i keep getting and error when i try to upload. I search it a lot and tried a lot of things, i changed the folder to read & write, i did the 'chmod -R 777...', nothing. I'm starting to think the problem is with my code. I appreciate all help, thanks! I always this error: Warning: File upload error - unable to create a temporary file in Unknown on line 0 <?php $dbhost = '127.0.0.1'

Show photo with SCRATCH OUT EFFECT by finger

天大地大妈咪最大 提交于 2019-12-24 12:34:44
问题 I need your help to know how to create an iPhone application to show a photo with SCRATCH OUT EFFECT. Something like the effect in this flash tutorial http://www.tutorial5.com/content/view/115/46/ Please help. Thanks. 回答1: You can have a look at the following post on how to create a blurred image effect, I don't think it's the best & fasted method, but it might get you started: UIImage blur 回答2: You can implement the scratch out effect by using CoreGraphics. Subclass UIView for the

Powershell - Set 'title' in photo file using Taglib-sharp not working

不打扰是莪最后的温柔 提交于 2019-12-24 11:57:58
问题 I'm trying to change the 'title' (extended file attribute) in multiple photos using Taglib-Sharp in Powershell. While it works fine for most, it doesn't for certain photos. So far from my initial testing it appears to not work with Olympus produced JPEG's or JPEG's without any EXIF info in them at all. I'm using TagLib-Sharp 2.1.0.0, I've tried older version's too. This is my code: [Reflection.Assembly]::LoadFrom( ("c:\taglib-sharp.dll") ) $media = [TagLib.File]::Create("C:\temp\photo.jpg")

Android app reverts back to index page after taking a picture

我是研究僧i 提交于 2019-12-24 08:47:03
问题 So i have this app i'm building and i'm a newbie to android apps. I am using phonegap to assist in making things easier. i used their example they have posted and when take the picture the app reverts back to the index page of my app instead of going to the page i want. what i would like to know is where do i modify the code to go to another page and display the picture i just took? here is some of my code: <script src="phonegap-1.1.0.js" type="text/javascript"></script> </head> <script type=

How do I display an image that I just took from my camera in my android app?

落花浮王杯 提交于 2019-12-24 03:58:07
问题 I am trying to take a picture and view it on the screen with the following code: public class MainActivity extends ActionBarActivity { private static final int PICTURE_REQUEST_CODE = 100; public Button camera, gallery; private Uri fileUri; private static File mediaFile; ImageView image; public String fileName; @Override protected void onCreate(Bundle savedInstanceState) { System.out.println("Started Main Activity"); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);

Posting Photo to FB results in Requires upload file error

本小妞迷上赌 提交于 2019-12-23 18:08:54
问题 I have the following code which I think is very close to working but I keep getting the following error: {"error":{"message":"(#324) Requires upload file","type":"OAuthException"}} but I cannot figure out how to specify the upload file... I have tried both image and source, both give the same error. Any thoughts, help, suggestions would be greatly appreciated as I have been struggling with this for a couple of days and it seems like it should not be this hard... <html> <head> <title>Photo

Facebook javascript photo upload+tagging API changed last night (2012 Sept.12th)?

时光怂恿深爱的人放手 提交于 2019-12-23 15:54:24
问题 I'm using the Javascript SDK and wanted to upload an image and tag friends at the same time. Yesterday I got everything working, uploading an image and specifying tags for 9 friends, but when I tried it again today it was broken, the image would still upload and I also get an id and post_id in the response, but tags wouldn't be added anymore. I stripped out all of the unnecessary code and boiled it down to the very basics (see below), without success. However making a second call to /photoId

Is there a program to view a raw array as an image?

大城市里の小女人 提交于 2019-12-23 05:39:15
问题 I have a heightmap which is just a 16-bit wide big-endian array. I haven't looked into encoding a jpg or png from the raw data, but before I do I would like to know if there are any programs that I can download to view it as an image, because I want to know what it looks like. When I do a search for viewing raw image data all the results return information about RAW image formats as used for camera image formats, which also differ between manufacturers, I don't think that's what I'm looking

Increase tumblr photo size

徘徊边缘 提交于 2019-12-23 04:35:32
问题 How do I edit this html so I can customize the width of a photo, tumblr doesn't seem to like changing the photo set size to anything bigger. I have looked up, but don't understand where a maxwidth:600px would fit in or if this is even the best way to do it. Massive thanks to anyone who can help me out {block:Photo} <div class="permalink"> {block:IfNotDisqusShortname}<a href="{Permalink}">→</a>{block:IfNotDisqusShortname} {block:Date}{block:IfDisqusShortname}<a href="{Permalink}#disqus_thread"

Listen to photo taken event

社会主义新天地 提交于 2019-12-23 04:12:33
问题 Just want to register to video/photo taken events. Hopefully, but not a must, the event will be triggered when the operation have finished, so I won't process half photos or half taken videos. Already tried: fileObserver = new FileObserver(dcimDir, FileObserver.ALL_EVENTS) I see the events when traversing using a file manager app but not when a picture is taken nor when copying. Ideas? 回答1: Found a way by registering to all sub directories of dcim (except the ones that start with a period):