Transparent images' backgrounds become black when uploaded - yii

I am using the Yii framework along with Fine Uploader to upload images onto my website. However, images with a transparent background (png files) will lose their transparency when the file is created in my website's images folder. Is this fixable? Thanks

Related

Force download itextsharp created anchor in PDF

I need to develop application which creates pdf files and serve them via http. PDF is created using iTextSharp. In my pdf files are lot of anchors navigating to images and videos stored on the same server f.e. http://192.168.10.10/video.mp4 .
Files are generated and trasmitted via http correctly, but when I click on those anchors in my pdf source files are opening in browser. I would like to force download them.
I read all itextsharp documentation and cannot find anything.
Is there some way to do that?

Where to change for external image storage in Opencart?

I am planning to store all my images on S3 Amazon service. Opencart system uses 4 different image sizes. Which one is better for website page load and optimize opencart; resizing all images and upload to S3 or just uploading main image to S3 and let opencart image cache resize the other picture sizes ?
Thanks
Upload normal images into s3 storage and give the storage path in config.php , opencart automatically does the resizing while rendering
I would use a cdn plugin it solves the headache for you.

Is it possible to upload Lumia Living Images to OneDrive, instead of just the static image?

I have a windows phone and I am trying to upload the Lumia Living Images taken with Lumia Camera. Looks like there is no option to upload the Living Image directly to OneDrive, but only the static images.
So wondering if there is any api available so that I can create an app to upload the images to OneDrive.
Looked everywhere, at this point of time there is no api to upload Living Images to OneDrive. I guess this will change soon. In the new windows 10 mobile insider preview, they recently added support for gif images support for photos app. Probably at some point when Windows 10 Mobile comes RTM we might have native support for Lumia Living Images.
There is no special API to do this, as the living image portion is tacked inside the JPG file, which is then viewable using the Photos app on Windows 10 (or any other capable client).

Image not displaying in image control

I'm showing an image in image control. For that I have created File Upload control of TextBox and button. And storing image in projects Images folder.Image is uploading very well. But it always needs to include in project then only I'm getting image displayed. Is there any solution to overcome this problem?
Be aware that the Silverlight application is running LOCAL in the user's browser. It cannot (easily) access files on the webserver that you upload. Files you include in the project work because they are compiled into the dll which is downloaded to the browser.
To dynamically access files uploaded to the server you need to implement some kind of WCF service to send it back. I don't know if you can easily "download" a file into a Silverlight App with a URL. Silerlight is pretty tight on what you can and cannt do...

Dragging an Image from Safari and dropping it onto dock icon does not work in snow leopard?

I've got an app:
You can drop an image file onto the app's dock icon and it will upload the image to a free image hoster. In 10.5 you could drag an image straight out of safari (and any other browser) and drop it onto the dock. (The app opened the image from the temporary folder the browser put it in and uploaded it to the net.)
Now in 10.6 the same app won't accept images dropped from safari (any other brwosers too) windows directly onto the dock icon. The browser seems to 'export' the internet-URL to image (http://somedomain.com/the_image.png) instead of the 10.5 behaviour of exporting the file name of the image-file in the cache. Local files dropped from finder are opened and handled flawlessly.
The consequences for me are: I have to implement a service that allows dropping URLs onto my dock icon. And then to decide if a local filename was dropped or a remote url. Resulting in boilerplate code to just to decide if I should open the image with [NSData dataWithContentsOfFile] or [NSData dataWithContentsOfURL] (sadly you can't create an NSURL from a local file name)
Is there a proper way to handle this and get rid of the boilerplate? (prepending a 'file://' to the filename and opening as an URL does not work.)
(sadly you can't create an NSURL from a local file name)
Yes you can. Have a look at +[NSURL fileURLWithPath:] in the docs.