Where does picasso (android image library) store the images? - picasso

Sorry about this silly question. Under which folder in the android file system does picasso cache the images? I'm using picasso 2.5.2

context.getApplicationContext().getCacheDir(), picasso-cache

Related

Does SDWebImage support webp images without SDWebImageWebPCoder?

I was able to download and display Webp images without SDWebImageWebPCoder using SDWebImage 5.13.4. So what is the purpose of SDWebImageWebPCoder?
Does SDWebImage already support Webp or am I wrong about something here?
How can I identify if Webp images are being downloaded to my app or not?
According to the ReadMe:
WebP format from iOS 14/macOS 11.0 via SDWebImageAWebPCoder. For lower firmware, use coder plugin SDWebImageWebPCoder
Google introduce the WebP format, and Apple decided later to support it, natively in UIKit.framework. So, natively, UIImage(data: webpData) works on iOS14 +.
Depending on which version of iOS you want to support for your App, you might need or not the SDWebImageWebPCoder plug-in lib, which will decode manually the WebP image raw data.

How can all the icon images for Corona SDK apps be generated from a single image file?

To properly customize the app icons for various platforms when using the Corona SDK game engine, a fairly large set of image files of specific sizes needs to be included in the project's root directory and specified in the build.settings file (detailed requirements are found in the Building/Distribution Dev Guide.
Is there any way to easily generate all the required image files for iOS and Android builds starting with a single, hi-res image file?
I use generator Icon Generator for Corona SDK with my previous game.
Solutions using various image processing apps can be found on the Corona Community Forum. My own solution was to write a Script-Fu script in Scheme for GIMP.
For those who are interested, the script (make-corona-icons.scm) and its README (with bare bones installation instructions) can be found in this public GitHub repository. GIMP, the open-source cross-platform "GNU Image Manipulation Program", is free and excellent and can be downloaded here.
I use makeappicon.com. It has treated me well for many years.

Downloading an image from URL with Asset Catalog perks

I am a newbie on iOS development and am developing my first serious app (Objective C).
I am using an external API and have gotten to a point where I need to download an image from said API to keep offline as cache.
Now, if I understood correctly I can add images to my app on XCode using the asset catalog. For example, if I add an image with image#1X.png, image#2X.png and image#3X.png versions, in order to use them later I only need to provide the "image" part to iOS and it will automatically return the version appropriate for the currently used device.
I cannot however add images to the asset catalog on runtime - I must create an NSData from the image URL and save it to the Documents folder.
The thing is, this API gives me a bunch of URL's for different versions of the image I need to download and among them are the #2X, #3X etc versions of the image, so I need to download all versions and use the asset catalog feature of retrieving the appropriate one for the device.
How can I achieve this?
Thank you very much in advance for your help and please correct me if I got something wrong.
so I need to download all versions and use the asset catalog feature of retrieving the appropriate one for the device.
You don't need to. We add 2x and 3x images to our asset catalog because we don't know on what device our app is running. But in your case, you need to know this at runtime, so you already know what's the device.
To get the scale factor for your device you can do:
UIScreen.mainScreen().scale
So, for 2x this will return 2 and for 3x it will return 3.
From this, you can know what's the proper image you need to download from your API instead of downloading them all which would add unneeded overhead.
You can check the document on the UIImageAsset if it helps in your requirement
Also as you say you are newer to iOS development you can check file system document also which helps you in understanding and managing file in better way
File System basics
Edit: as mentioned by sateesh and patchdiaz, it will be better solution to download only single resolution images for the particular device instead of downloading all resolution images for a device

Using LibTiff with Delphi

I'd like to use LibTiff with XE3 to access image meta data information from TIFF files.
I need to find the number of pages inside tiff and their sizes.
I suggested LibTiff because I need the fastest possible implementation of reading tiff image meta data.
The only link I have found is not working anymore:
http://www.awaresystems.be/imaging/tiff/delphi.html
OK, Internet Archive has returned back to operational state, and here is your download:
LibTiffDelphi, full version. Large download (approx 1.39 megabyte), includes Debug and Release versions
Well, the download links at that site do appear to be down. You could try downloading from here instead: http://www.vdebris.comli.com/wp-content/uploads/2009/09/libtiffdelphi_3_9_1.rar
I think you could use Mike Lischke's GraphicEx to solve your problem. The TImageProperties record that is made available by the TGraphicExGraphic class appears to have what you need.
found that code working with *.tif and used graphics + lib for solution building TIF SPLITTER
not sure if it helps to solve your problem

Finding image resource in iOS app (XCode 4.2)

This feels like a silly question but I'm stumped. I working on an iOS app using XCode 4.2 and I can't find an image file anywhere in the project. The image filename is passed to UIImage imageNamed: so it has to be somewhere local (not downloading it from remote server). What's the best way to find the image?
In my own iOS projects it's trivially easy to locate images: look in the Resources group in the project directory. I've inherited this application and looking in Resources turns up nothing.
The bottom of the navigation panel has an input field which filters what's displayed
Try the Supporting Files folder

Resources