Cocoa. Why app's image are changed from png to tiff format in sandbox? - cocoa

my app's resources are png format,but when I run the app,and open the sandbox's content resources directory,I found that all the images in png format are changed to tiff format,how is it going?
anyone could help me?
Thanks!

This sounds like you have the "Combine High Resolution Artwork" setting set in your project's build settings. With this option set Xcode will automatically combine a standard and #2x image into a single TIFF. See this Apple doc for details.

Related

How to add GIF file in Xcode assets foler?

I'm using Xcode 12.4 and I want to use GIF image in my app.
So I put GIF Image in Assets.xcassets folder.
But UIImage can't recognize the GIF file with this error message
CoreUI: attempting to lookup a named image 'imgname' with a type that is not a data type in the AssetCatalog
When I open Assets.xcassets folder in xcode, the file is represented like above image.
How to solve this error? I use code to get image
UIImage.animatedImage(with: [UIImage(named: "img_name")!], duration: 15.0)
Thank you.
That's because UIImage is not support file in data set.
You must use NSDataAsset to load gif data from data set

Downside from renaming WebP to JPG or other?

If I compress and save an image as WebP and then rename the extension as jpg will there be any downsides? This is why I ask:
My blog doesn't support WebP format, however if I rename it to png or jpg it will accept it.
What's the possible downsides on this trick?
As of December 2020, all major browsers support JPEG, but not all fully support WebP [https://caniuse.com/webp]. Users of browsers without WebP support won't see the images when visiting the page, so this might be why your blog platform doesn't accept WebP files.
Another downside: if someone downloads an image, the downloaded file will still have the ".jpg" extension despite being WebP format. Many programs depend on file extensions to know how to open it. They will try to decode it as JPEG, but fail, since the file is WebP.
I just change the name from .webp to .jpg and I have never had a problem. Obviously, you have to set your file manager (File Explorer) to be able to view the file name extensions.

Siebel open UI IP16 - loading image customization

Is there a way I can customize (replace with another GIF image) the loading image in Siebel Open UI in IP16 version? The current loading image is an red colored, oval shaped, oracle provided one, but i do not find the corresponding image in images folder. Any leads?
The animated icon may be stored in css files.
Try to search in your css files for something like
.siebui-mask-outer
timer
It may not be an actual gif but an css transformation.
(btw. You can run your Chrome Developer tool and examine the source of the icon)
The standard GIF file must be in public/enu folder (for english application) on the web server. On your local installation, it will be in C:\Siebel81\16.0.0.0.0\Client\PUBLIC\IMAGES\
There are multiple gif files there used for different applications.

Where can i find the nice Processing Gif file

Where can i find the nice Processing Gif file
I found few on google images. but when i try downloading them, its getting downloaded as an image.
Please help me.
I think you're looking for http://ajaxload.info. They're all images, though - that's what a GIF is.
Here another one ,explains what types you need.
http://qureyoon.blogspot.com/2006/11/make-your-own-loading-gif.html
maybe you're opening with the default windows image viewer. It doesn't show gif animations. try opening them in your browser if that's the case.

Interface Builder doesn't show some of my resource images

I have almost 20 images in PNG format added to my current project on Xcode (under the proper group, Resources). Unfortunately, library window's Media tab doesn't show some of them. And if I create an UIImageView and set one of these invisible images from code, nothing shows up. I also tried from IB with adding a UIImageView and set its source image.
Is this problem a image format related issue or is there a tiny detail I'm missing.
What log says:
Could not load the "07_clock_icon.png" image referenced from a nib in the bundle
The solution to this is a bit silly, but it definitely works:
Close XCode and the Interface Builder. Now, instead of opening XCode then opening the project, navigate to the project in Finder and double click on the project. When you open your xib file the blue file not found images will flash up, then be replaced with the correct images and the dropdown will show all your images in the Inspector.
Heyy! I figured it out. It's a refreshing bug. So just copy and replace those images that did not load into your project folder, and then hold Shift Command K (to clean your project). After Clean Up it should work perfectly! Enjoy!
If you dragged the images from the Finder into the Resources folder in XCode the images should show up in IB as well. At least it does so in my setup.
Maybe the images are 8-bit PNG images. I believe Cocoa requires them to be 24-bit because of the alpha transparency. PNG 8-bit doesn't support the alpha channel, as it's more like a GIF image.
But from the error you posted It seems IB couldn't find the resource at all. Which is understandable if it doesn't load the resources from XCode in its library.
Assuming you selected the option to let XCode copy the files into your project and neither XCode nor the Finder complain when you make the copy... I wonder if there might be some file corruption? Maybe try recreating them or opening and resaving them from another graphics application (or even Preview.app).
btw- 8-bit PNGs have worked fine for me.
Same problem was encountered by me. The problem is with the image. The image has been some how corrupted.Try to open the image in photoshop and you will see it doesn't open with photoshop.
I solved the problem by changing the image format to PNG-24 and everything works fine for me.
Hope this will solve your issue.
Regards,
Rupesh R Menon

Resources