Where are the Xcode 'prepackaged' images stored? - xcode

I need access to the image of the default clear button that apple provides because I want to use it somewhere else in my app, where can I find the image file? If apple doesn't allow access to them, does anyone have a link to this image, i've been searching for a while now and haven't found a proper .png image i can use (I don't have photoshop, so I can't edit them myself).
The image I'm talking about is the one that shows up if i add this line of code:
textfield.clearButtonMode = UITextFieldViewModeWhileEditing;

I suggest you to use this. http://www.teehanlax.com/tools/iphone/
It's a psd, but you should be able to extract the ressource using a tool like acorn.
Ok, I was feeling nice:

Related

Multiple Corrupted Instagram Images from multiple users from API

We have encountered multiple corrupted Instagram Standard Images (612px).
This happens the last 3-4 days. And across multiple Instagram users.
Strangely this issue is only evident when the images are opened using Adobe Photoshop.
When viewed using Mac's finder or Preview this image corrupt problem is not visible.
It affects about 50% of our customers. And mostly about 10-20% of their choosen images. And some can affect around 50-100% of their images.
Example of corrupted images:
http://distilleryimage10.s3.amazonaws.com/5875aa2eb24411e3bfe2124c49cf34ce_8.jpg
http://distilleryimage0.s3.amazonaws.com/3b3452a8b24411e3b352126f9f588c64_8.jpg
Again, this issue is only evident when the photos are being prepared to print.
Or when it is opened using Adobe Photoshop/Acrobat/Illustrator/Indesign.
Please help.
Thanks
Jeff
I managed to solve my issue with the same description. What I first did was download the images to my webserver exactly to what is was online, so I didn't change anything of the file contents, just get en then put in the file.
How I solved my problem? I use PHP to generate the image now after I donwloaded it the same way. This is the simplified version of my script:
<?php
// Create an image instance
$im = imagecreatefromjpeg('instagram_image.jpeg');
// Disable interlacing
imageinterlace($im, false); // did not use this but will do the same
// Save the image
imagejpeg($im, 'instagram_image.jpeg');
imagedestroy($im);
?>
When I started using this simple create and save script it all worked again. It looks like it does nothing but it did a lot for me! Hope it helps someone saving a lot of time, took me 1,5 day to figure out the exact problem.

How to load pdf file on CStatic control in VC++

I want to draw/load pdf file which contain image, on the CStatic control in my VC++ project.
But, I don't know how to load pdf file on CStatic control.
I have searched a lot, but dint find any right direction.
In Mac, Its possible using specific function, but is there any way in Windows ?
Can you please suggest me any right direction...
Thanks in advance.
EDIT
I want to load image in PDF to CStatic, reason behind that I want to maintain image quality. Just load vector data of PDF image to on CStatic.
Please suggest ... !!!
There is no way to Show a PDF file inside a static control.
There are several ActiveX Controls that can show a PDF file. Also Adobe ships and AcroPdf ActiveX file that is free to use.
Here is a sample
If you just want to Show formatted data you can use an RTF-Control

Where to Host a .cur image

.cur is an image extension for mouse Cursors
I have purchased a custom domain via Blogger.Unlike Wordpress,blogger does not have any directory of webfiles or something where things can be uploaded
I need to change the default cursor of my mouse in my website.Unfortunately,Google's Picassa or Imageshack/phobucket do not support .cur files.
I found some other image sites while googling,but all are old image hosting services which no longer exist.
I tried dropbox,google code,but they provide a link to download the .cur image and not actually give a url which i can link in my css.
Is there any way to host .cur Images.Please Help.Thanks.
Do you really need to keep this file in the cur format? Isn't converting it to, say, PNG an option?
I'm not even sure every browser/OS out there supports cur (though I've seen examples online with this format, so I might be mistaken). Converting to a more standard format might ensure better portability, besides saving you the hassle of looking for a host with such specific requirements.

Image of the object within .STL File

Please take a look on the website http://quotes.rapidprototype.com.au/upload/ and upload STL File and press "Start Upload" button. You shall see the image of the object within the stl file as (.png) image. I want the same functionality(The image of the of the object within the stl file, rest of the work i can do). I want to get the image in .png or .jpr or .gif format as a 2D image. I want that the user can see the image of the object within the stl file that he/she uploads. I am using PHP.
Please assist me how can I achieve this using PHP. I shall be very thank full to you.
You could use ParaView www.paraview.org in the backend. This is free and reads stl as well as having the ability to save images. There is a python interface, so you can program it to do various things (starting by tracing your actions in the GUI). You can also give it options from the command line. ParaView has a web component, but it would probably be easier just to have PHP do a system call and look for the resulting image.
Test that it works on the command line before wrapping it in PHP

how to make images in my webpages not downloadable

I am wondering how to prevent people from Save image as.. by right-click images on my webpages.
I was thinking about disable right-click, but it seems I have to write javascript code. Is there a easy way to do this?
The simple answer is "you cannot do that". You might be able to put something on the server side that will check the referer before serving the image, but even that is not 100% guaranteed. Moreover, even if you did manage somehow to prevent this, nothing would prevent somebody from taking a screenshot of the browser page and then cropping the image out of it.
I think a much better approach would be to have a server-side url rewriting and processing of the images to add some sort of a visible watermark identifying the images as owned by you and saving a proper copyright information in the EXIF information.
You can make a div that is the same size and height as the image and then you can set the image as the background for that div. That will prevent people from directly downloading the image but they can still enter the url and download it from there. I made a tutorial on this myself right here: http://www.andytechguy.com/tutorials/html/how_to_nodownload/
There's an easy solution for this which I used in my website. Just add oncontextmenu="return false;" attribute to the Image tag and you are done with it!
<img src="https://source.unsplash.com/random" alt="Random image" oncontextmenu="return false;">
This is my first question to be answered on stackoverflow, so please fair with me if I didn't use the right tools...
As long as the image URL is in the source code, the image is downloadable using the unix command wget, or anything similar. I'm not a javascript expert however, but I believe you could read the location of the photo from a text file instead of the URL being hard coded in the HTML. Then you could configure that text file to return a 403 (Permission denied) when attempted to view with whatever web server you are using. This still wouldn't stop screenshots though.
Something like this:
<img src="some javascript to read text file">
Then have the text file contain:
/path/to/obscurely/named/photo.png
Ya, this isn't really possible. Another option is to use Lightroom or something else to batch add watermarks. Watermarks are the only option that I'm aware of that will almost completely protect you, because even the screenshot idea is not really possible unless they are a wizard in Photoshop.
In conclusion I think Lightroom or something else is your best and easiest shot of getting what your looking for.
You can do this by converting the image format from jpg to svg...there are alot of converters online i.e https://convertio.co/jpg-svg/
After this you copy and paste the svg code into your html code to replace the jpg.

Resources