photoshop

How to use the Photoshop PSD design file in your xCode?

大兔子大兔子 提交于 2019-12-08 15:26:28
I'm going to creat an iOS app from UI design to implementation, I want to make my app looks better, so i googled a lot and find people saying to create a PSD file with your app views first, so here comes to my question: 1) If i had that PSD file, how do i use it in my app? 2) Is there a general way to use that PSD file for all the elements I created? Thank you very much. The PSD File contains your photoshop readable source material and cannot be used in your iOS application. You have to export / save your PDF files save a PNG or jpeg to use it. You can export the PSD elements to XCode using a

Automate Batch Script - Convert filenames to text in Photoshop

前提是你 提交于 2019-12-08 12:25:03
问题 How do you convert each filename of a bunch of files, each to a text layer (and save) in Photoshop? Folder 1: Hundereds of files Folder 2: Nearly the same files, but each with its filename plastered onto its image Here is a hacked up snippet. The error that I can't seem to get by is how to set the activeDocument to the currently open one. http://pastebin.com/b0fqG9v4 回答1: Hasn't been marked as answered so here's a javascript example for CS (and should work on later versions too) in case

How to cut iOS8 assets from a PSD designed at 1242px by 2208px

寵の児 提交于 2019-12-08 12:04:16
问题 The designers on a project I am responsible for developing (one of my first iOS projects) designed the app using a Photoshop canvas set at 1242x2208 pixels, which is the number of pixels that the iPhone 6+ uses. I've scoured the internet and am just getting more and more confused by all the conversions for 1x, 2x, 3x and to further the confusion, apple downsizes to 1080x1920. Anyways, how do I cut the assets correctly for @1x, @2x, @3x? When I crop the element I want, I save it out at 3x. But

Java - find a color representing all colors in an image

狂风中的少年 提交于 2019-12-08 09:37:05
问题 I am wanting to sample an image to return a single color that "looks" that a good representation of the colors sampled. I have tried two methods: Taking an average of all the red, greens, and blues and creating an image from that. This rarely produces a color that looks like it came from the image. Finding the "dominant" color from the image. This entails finding the most common color from the image. This is better, but for example, the Mona Lisa produces a dark purple color. This seems to

Preparing the images for retina-ready (web)

落爺英雄遲暮 提交于 2019-12-08 08:28:29
问题 I have a question that have been on my mind for several time now: how should I prepare the images that I am going to use on a website to be retina-ready? Yes, I have been spending hours on the interweb on this topic, but so far I haven't find the one 'ultimate answer'. In this thread for example (link: image size for retina display), it is only mentioned that I need to double the dimensions. But how about the resolution? Real life situation: an image is created using Photoshop (or whatever

css icon images or icon image?

若如初见. 提交于 2019-12-08 06:14:53
问题 i have a website which has many icons and each icon has separate image, but i was thinking to add all thous icons into one image and use that for faster load, but im not sure if i should do this. what is pros/cons for this. any suggestions? or should i just keep it 1 image for 1 icon? 回答1: That's a common (and good) technique called a CSS Sprite. Here's a good, albeit a bit dated, article explaining them: http://www.alistapart.com/articles/sprites 回答2: If you were to use CSS Sprites then your

How do I stop Image Magick stripImage() from removing resolution data

风流意气都作罢 提交于 2019-12-08 06:05:22
问题 I'm uploading images to my website and optimising them by removing EXIF data using Image Magick's stripImage() function. $img = new Imagick($image); $img->stripImage(); $img->writeImage($image); $img->destroy(); It works quite well, I get reduced file sizes as expected. However, if I open the image in Photoshop, photoshop reads the image as having a resolution of 1 Pixel per Inch. It seems that stripImage is removing the EXIF data that photoshop uses to determine resolution. How do I prevent

What Is the Algorithm Behind Photoshop's “Black and White” Adjustment Layer?

若如初见. 提交于 2019-12-08 05:04:13
问题 I did lot's of research but I didn't find anything (but I also don't know what kind of keywords to search for exactly). I want to be able to convert an input RGB image to grayscale but I want to be able to add more or less Reds/Yellows/Greens/Cyans/Blues/Magentas like in Photoshop . Do you know what are the equation or where I can found these equations so that I can implemented my own optimized RGB to Grayscale conversion? Edit : In Photoshop it is called Black/White adjustment layer . I have

Is there a way to generate high resolution PNGs of iOS emoji?

醉酒当歌 提交于 2019-12-08 03:54:59
问题 I have been able to find 160x160 pixel emoji PNGs from iOS (actually WhatsApp but they are roughly the same set). These only show up as 1x when I import them into XCode 7 though. Is there a way using Photoshop / OS X or similar to create high-resolution (retina friendly even, if possible) Emoji for use in an iOS game utilizing SpriteKit to animate the emoji? Thanks in advance. 回答1: The "Apple Color Emoji" font that's used to render emoji in Mac OS X and iOS uses PNG bitmaps for the glyphs.

2 opposite opacity values dont produce opaque color

帅比萌擦擦* 提交于 2019-12-08 02:51:43
问题 I want to produce an opaque solid color with 2 opacity values of that color. eg: 0.5 opacity black color rectangle when placed above same 0.5 opacity black color doesn't give me same result as an opaque (opacity 1) black color. I have tried this with different range of opacity values and found something like 0.5 & 0.8 produce 0.9 opacity black color, 0.4 & 0.82 and so on. These are not accurate values. What is the exact formula for calculating exactly opposite opacity values? 回答1: If two