I use Photoshop script,that export all layers into png files.
After script successfuly done, in saved folder files have strange filenames, like:
UI-_0000_Background.png
UI-_0001s_0001_Input-Background.png
This is my Layers:
Do you know how to save files with what format:
%(Prefix)%(LayerName)%(Additions).png
Like UI-Background#2x.png?
Or if you know another way how to save pngs from photoshop for Retina and non-Retina iPhone displayes, can you describe it, please?
Thx!)
I'm sure this is how the plugin supose to work. you should check in the Photoshop menu if there are any other options for this plugin to remove the 0000 and underscore. As sollution you can use IrfanView or similar software to rename your files using regex or special commands so you can remove the underscore and 0000 easely.
Related
I am using Raspbian and had a folder full of images. I selected all of the images, right clicked them, and selected "Compress" so that I could put them in an archive to move to another computer. I selected archive type as "gz" and left "add archive extension to filename" checked. What was produced was a "[oneofthepicturefilenames].png.gz" which I moved to the other computer.
The problem is, when I open this .gz, I only see one png that is the size of the entire directory I compressed (1.4Gb). unfortunately, the source images were deleted, and I'm trying to figure out how to recover my images from this file as I assume their data is still there in some strange format. Any ideas?
The images aren't sensitive, so if anyone wants to take a look at what I've done, you can see the file here.
I have installed doxygen and graphviz-2.38 on my windows 7. But when i generate Call graphs or Called graphs, the png file or the graphs does not open, it generates .md5 file but searches for .png files for the graphs . Please help.
Doxygen can use the "dot" tool from graphviz to generate more advanced diagrams and graphs.
If you have the "dot" tool in the path, you can set HAVE_DOT to YES in the configuration file to let doxygen use it. Among the dot options, use DOT_IMAGE_FORMAT also.
The DOT_IMAGE_FORMAT tag can be used to set the image format of the images generated by dot. Possible values are svg, png, jpg, or gif. If left blank png will be used.
Note
If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files visible in IE 9+ (other browsers do not have this requirement).
I've been trying to understand how XMP metadata worked on PNG files for the last few hours but couldn't quite wrap my head around it.
If I create a PNG image with Photoshop, save it and open the File Info dialog (File > File Info or Ctrl+Alt+Shift+I), I can see some XMP properties like CreateDate, CreatorTool or ModifyDate.
Now if I try to open the file with exiv2 and read the metadata it seems to not find anything:
auto image = Exiv2::ImageFactory::open(imagePath);
image->readMetadata();
Exiv2::XmpData &xmpData = image->xmpData();
The same goes with the exiftool -xmp:all myImage.png, exiv2 -P X myImage.png, or even GIMP (but I think it is using exiv2 internally).
This wouldn't be such an issue if any added metadata were not removed when saving again with Photoshop. In case this wasn't clear, opening the image and adding XMP metadata with exiv2, saving it, opening the image back in Photoshop and in the file info dialog, the properties added previously are not there any more.
The weird thing is that if you do this entire process with a JPEG image, everything works as expected: all the properties are visible from both Photoshop and exiv2 and if I try to add metadata with exiv2 (using the same code), it appears in Photoshop as well.
Am I missing something obvious? Is there anything special about PNGs that is not true for JPEGs? I haven't tried to use Adobe's SDK to edit the XMP data, is it any better?
Any help would be much appreciated as this is starting to drive me crazy :/
Edit: After reading this post I tried with Adobe Bridge and it doesn't seem to display the same properties as Photoshop. If I add XMP metadata with Exiv2 they are displayed in Bridge but if I modify the image in Photoshop, the metadata is gone from Bridge again.
Right, I finally got my hands on a copy of Photoshop CC and everything works fine. It must have been a bug in CS5 and CS6 that has been corrected in CC.
I think a recent update of Photoshop CS6 (13.1?) fixed this issue. It seems to have fixed problems with ICC color profiles in PNG images as well: http://forums.adobe.com/thread/1183489
After upgrading to iphone xcode 4.1 build 4B110F all of my localizable.strings files are showing up as gibberish in the xcode editor. I created these files using UTF-16. I can not find a way to tell the editor that they are UTF-16. I am able to view the Localizable.strings files by viewing as a property list, but if I view them as Source Code, I see gibberish. I like to translate the entire localization.strings file and paste it into the editor. I don't want to have to cut and paste one line at a time in the property editor. There should be some way to tell xcode to show the file as UTF-16. Does anyone have any ideas?
I tried removing the files and re-adding them. I used to get prompted for the UTF type, but it does not do this any more.
You can find the text encoding setting for a file in the Utility area of Xcode 4.1. The utility area is the right-handside lateral area.
In the utility area, look for and select the first pane, named "File Inspector".
There, you will find the text encoding in the "Text Settings" block. Expand if necessary using the triangle.
I had this same problem. I was able to work around it (without much actual investigation) by simply opening the previous string files in TextWrangler, then copy from TextWrangler and paste into XCode4's view of the string file. Things seem to be working fine as a result.
To fix XCode 4.1 UTF-16 encoding issues:
1: Open the file you want to change
2: Put your cursor into the file, which will give the editor focus (VERY IMPORTANT).
3: Proceed to look under the Utilities Pane (very far right) for Text Settings and use the Text Encoding drop down to select UTF-16 or whatever other encoding you want.
If you forget step 2, and only highlight the file in the Project Navigator, you will not see encoding options.
Is there an app that can change the order of images inside an icon?
Thanks!
What you'll need to do that is a resource editor. A google search will reveal many free ones out there. The restorator is a great one, but not free and over-priced IMO.
Any decent resource editor will allow you to see icons in the exe or dll and save them or replace them. I don't know of any that will allow you to reorder them, but just about any out there would allow you to save the icons out and then replace them back in the exe/dll in whatever order you'd like.
The only resource editor I know of that will allow you to re-order the embedded icons including png compressed vista icons is Resource Tuner Console.
You can change the image order using Pixelformer (an icon/bitmap editor). Import the icon, reorder the images as you wish, then export it back.
Using a resource editor is not an easy way to do this because you have to edit both ICON and ICON GROUP and I tried to do this with Resource Hacker and could not do it.
I found Easy Icon Maker is able to rearrange the order of the icons properly... it's the only icon editor that I found with this option, and I tried about half a dozen. The editor itself is not nearly as good as IcoFX (http://portableapps.com/apps/graphics_pictures/icofx_portable)
Why would you want to do this? Well there are certain times when Windows will use the first icon file that matches the size, but this may not be the color-depth that you want... for instance if you are on an older machine like Windows 2000 that doesn't support Alpha Channels then putting these at the beginning of your ICO file will cause Windows 2000 to try to render it so it results in black dots all over the image.