tiff

How to load a self-made TIFF image file from NSDocumentsDirectory

六眼飞鱼酱① 提交于 2019-12-12 05:59:23
问题 When trying to load files from the NSDocumentsDirectory of an iPhone, I cannot create the image source with the path string I have. I get the error message " <Error>: ImageIO: CGImageSourceCreateWithURL CFURLCreateDataAndPropertiesFromResource failed with error code -15. ", which is a kCFURLImproperArgumentsError . However, I cannot find what "proper" arguments might be. An example path would be: " /var/mobile/Applications/36D76BDF-72EC-4180-9246-CF1F50CF396C/Documents/2013080110555532Image

opencv 2.4.5 unable to load tif image file properly in windows

我与影子孤独终老i 提交于 2019-12-12 05:37:08
问题 I have few tif images which open on imread or cvLoadImage gives null data in windows whereas the same file is processed conveniently on ubuntu installation. Running imagemagik identify returns $identify 60018969.tif 60018969.tif[0] TIFF 1696x2192 1696x2192+0+0 8-bit Grayscale DirectClass 516KB 0.000u 0:00.040 60018969.tif[1] TIFF 1696x2192 1696x2192+0+0 8-bit Grayscale DirectClass 516KB 0.000u 0:00.030 60018969.tif[2] TIFF 1696x2376 1696x2376+0+0 8-bit Grayscale DirectClass 516KB 0.000u 0:00

In Java , Exclude a string while encode using base64

╄→гoц情女王★ 提交于 2019-12-12 04:21:40
问题 Is there a way that I can exclude particular string (II*) while encode a tiff file and keep that String as it is and also during the decode ? Or How can I specify the encoding to always encode (II*) as three characters and not to combine with any other characters ? Below code to replace the string II* with ( II* ), however tiff got corrupted after that. Path path = Paths.get("D:\\Users\\Vinoth\\workspace\\Testing\\Testing.tiff"); Charset charset = StandardCharsets.UTF_8; String content = new

Distinguish between transparency and extra alpha channels?

点点圈 提交于 2019-12-12 03:52:10
问题 I am sorry in advance if I am not explaining my question really well. I am not 100% aware of the stuff I am asking. Lets say that I have some CMYK tiff files. Is there a way that I can distinguish the difference between transparency and extra alpha channel ? I used exiftools in the terminal with the command : exiftool -G -S filename.tif and I got a tag (ExtraSamples) that provides information about the alpha channel. Is there a way that I can distinguish the aforementioned difference ? Thanks

Conversion of EPS to PDF or Tiff does not maintain transparency

一世执手 提交于 2019-12-12 02:26:43
问题 I am trying to convert eps file to pdf file or tiff file using ghostscript but having issues keeping it transparent. When I convert it to png, transparency is maintained but I need to have pdf or tiff for printing purpose. To convert it to PDF, I am using below Arguments: For PDF -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dEPSCrop -sOutputFile=C:\temp\test.pdf C:\temp\test.eps; For Tiff -dNOPAUSE -dBATCH -sDEVICE=tiff32nc -r300 -dEPSCrop -sOutputFile=C:\temp\test.tiff C:\temp\test.eps; is there

How to create a 2 bit gif from tiff file in dotnet

∥☆過路亽.° 提交于 2019-12-12 01:35:00
问题 I have used Bitmap class to convert tiff to Gif but it couldn't make the image 2 bit possible for have less size. Notice that bitmap class could create images with this pixel format : 1, 4, 8, 16, 32, 64 (bits) But my need is 2 bit. Unfortunately Gdi+ do not support 2bpp. Is there any source or library to do that? 回答1: GDI+ only supports 1bpp,4bpp,8bpp for GIF output. Although the GIF specs allow other color depths, it's not supported by GDI+. http://msdn.microsoft.com/en-us/library/system

Displaying .tif images in the asp:Image control of ASPNET

北城以北 提交于 2019-12-12 01:27:44
问题 I have been given a bunch of ".tif" image files that should be displayed on to my .aspx pages. Although i can see these images in design time. The asp:Image fails to render the image(.tif) on the browser. If i use a .jpg file instead of tiff image, it renders perfectly. Any ideas why this is a limitation ? Things i tried To have a Handler file SampleHandler.ashx in my project which does the processing of the request public void ProcessRequest(HttpContext context) { string path = context

Converting to Floating Point Image from .tif

流过昼夜 提交于 2019-12-12 01:06:39
问题 I am relatively new to C++ and coding in general and have run into a problem when attempting to convert an image to a floating point image. I am attempting to do this to eliminate round off errors with calculating the mean and standard deviation of pixel intensity for images as it starts to effect data quite substantially. My code is below. Mat img = imread("Cells2.tif"); cv::namedWindow("stuff", CV_WINDOW_NORMAL); cv::imshow("stuff",img); CvMat cvmat = img; Mat dst = cvCreateImage(cvGetSize(

Convert Tiff to Pdf in java using itext

痞子三分冷 提交于 2019-12-12 00:37:45
问题 I am using the below code for converting tiff to pdf It works fine for tiff images of dimensions 850*1100.But when I am trying to give the input tiff image of dimensions(Eg :- 1574*732, 684*353 or other 850*1100), I am getting the below error. Please help me how to convert tiff images of different dimensions to pdf. Error Occured for below code . Compression JPEG is only supported with a single strip. This image has 45 strips. RandomAccessFileOrArray myTifFile = null; com.itextpdf.text

iTextSharp, Why when creating a PDF file size is 2 times larger than the original folder with images?

别来无恙 提交于 2019-12-11 17:21:29
问题 I need the finished PDF file to be 30% smaller than the original image folder. There is a folder with images in tiff format. Then I add one image per page (Doc = new document (), etc.), the resulting document size is equal to the size of the image folder. But after passing the doc.Close() PDF file size increased two times (so I use compression PDF later and then the file is approximately equal to the folder), but I need the finished PDF file to be 30% smaller than the original image folder.