trigger.io "The binary being analyzed must be an executable" itune issue - itunes

I went to upload my ipa as I normaly do and after upload it via itunes I got this email
The binary being analyzed must be an executable: /tmp/mz_3482061619165087240dir/conbop-1377470196-1.ipa/Payload/device-ios.app/Forge
The file 'device-ios.app/Default-568h#2x~iphone.png' is labeled as a PNG file, but is not valid to that format; file command reports: './device-ios.app/Default-568h#2x~iphone.png: JPEG image data, EXIF standard '
The file 'device-ios.app/Default-Landscape#2x~ipad.png' is labeled as a PNG file, but is not valid to that format; file command reports: './device-ios.app/Default-Landscape#2x~ipad.png: JPEG image data, EXIF standard '
The file 'device-ios.app/Default-Portrait#2x~ipad.png' is labeled as a PNG file, but is not valid to that format; file command reports: './device-ios.app/Default-Portrait#2x~ipad.png: JPEG image data, EXIF standard '
The file 'device-ios.app/Default-Portrait~ipad.png' is labeled as a PNG file, but is not valid to that format; file command reports: './device-ios.app/Default-Portrait~ipad.png: JPEG image data, EXIF standard '
The file 'device-ios.app/Default#2x~iphone.png' is labeled as a PNG file, but is not valid to that format; file command reports: './device-ios.app/Default#2x~iphone.png: JPEG image data, EXIF standard '
The file 'device-ios.app/Default~iphone.png' is labeled as a PNG file, but is not valid to that format; file command reports: './device-ios.app/Default~iphone.png: JPEG image data, EXIF standard '
Any help would be appreciated as to why itunes is kicking this back.
Thanks!

The image errors are because Apple require all the images are png files rather than jpgs, they appear to have recently become more strict about enforcing this which might be why you haven't had these problems before, you should be able to resave the files as png with an image editor.
I've not seen the binary is not an executable error before, I'd recommend trying again once you fix the image issues, if you still see that error it would be great if you could send your ipa file to support#trigger.io and we'll take a look at it.

I did have to change the images as well as do some other things with permissions. Connorhd explained in this post how to change the permissions for the time being.
The binary being analyzed must be an executable trigger.io

Related

Convert .bin to .png for files located in word/embedding of a word.zip file

I am stuck at this problem for some hours now.
I have a wordfile with embedded OLE objects. The OLE-Objects are PNG-files.
I unzipped the word-file via renaming it to .zip and found the files I need via \document.xml and _rels\document.xml.rels whereby I could identify the needed OLE-Object in the documents.xml and the r:id under <v:imagedata> linked to the respective OLE-Object in the document.xml.rels.
Now when I open the OLE-Object via the word file, it is recognized as expected as a PNG. When I look it up under \embeddings\oleObject1.bin, it is no longer a png, but a bin instead.
Now simply renaming the bin to png does not work...
My question would be: How do I turn this bin into a graphics format I can use?
Thank you very much!
*.bin streams are themselves zip archives. When you extract them you will find their true contents along with some meta-data.

Extract Image from PDF correctly

I have a PDF file that contains an image where this image is successfully displayed. When I try to extract the image from the PDF file using itextsharp or pdfsharp libs I get bytes, then decode them successfully (because there is /Filter/FlateDecode there). But when I try to convert these bytes to an image using different libs the exception occured (it looks like the bytes are actually not an image). As far as I understand the problem is processing these bytes, but the image in the Pdf is not corrupted because it is shown there correctly. PDF is here.
The images are most likely stored in the PDF image format which is documented in the PDF specification.
It is rather simple to convert them to the Windows BMP format. But still you must convert them and add headers with the specific information from the image attributes from the PDF file.
In PDF a new image line is byte-aligned, in Windows BMP it is DWORD-aligned.
Don't forget to extract the colour table if there is one.

Convert "print to file" PRN file to PS

I spend almost day trying to understand how to convert "print to file" PRN file to PS or PDF file. The PRN file is in PCL format and while looking on google I found that GhostPCL should do conversion job using command line
gpcl6win64.exe -dNOPAUSE -sDEVICE=ps2write -sOutputFile="c:\output.ps" "c:\input.prn"
Unfortunately that I get is binary data from PRN file is moved to ps/pdf file without rendering anything useful only garbage symbols.
Any idea how to convert PRN PCL files to PS or PDF?
I am using the newest version of GhostPCL 9.23 for Win64.
I also attaching test files.
input.prn - the print to file PCL.
output.ps - the PostScript file created using command line above with ps2write. Bad result.
output.pdf - the PDF file created using command line above with pdfwrite. Bad result.
output-correct.pdf - The PDF file created using one of online converters. Produce correct output but looking at PDF metadata it seems it is using GPL Ghostscript 9.19.
The command line you specify will create a PostScript program from the PCL input. I don't understand what you mean by:
binary data from PRN file is moved to ps/pdf file without rendering
anything
The process won't render anything it will produce a PostScript file. Note you can create a PDF file instead by using the pdfwrite device.
Perhaps if you shared an example of the input and output files it might be possible to say more. It would also be helpful to see the entire transcript of the back channel output. If nothing else it would contain the version of GhostPCL being used, which would be helpful to know.
[Edit after files supplied]
I've no idea what led you to believe your file was a PCL file, but it isn't.
The 'PRN' file turns out not to be a PCL file at all. Its an XPS file.
Unsurprisingly, when you run this through the PCL interpreter it doesn't know what to make of it. PCL interpreters treat anything they don't understand as 'text' and try to print it as such. Which is why the content of your PDF begins with 'PK'. XPS files are zip archives, and PK is the signature for a zip archive.
If you use GhostXPS instead it will read the file properly. Or, since this is presumably on Windows 10, you could just save it direct to a PDF file if that's what you want.
Add a Microsoft PS Class Driver printer on a local port FILE:. Make sure that its Print Processor is set to winprint/RAW.

Japanese symbols are not shown in raster image in WinRT

I have a small trouble with Japanese symbols when I save rasterized PDF document into PNG. I tried to convert PDF file into the PNG with help of pitron.PDF.Rasterizer in my Windows Store application. Another files with embedded fonts are converted without problems, but this file does not contain embedded fonts and looks horrible.
Thanks, any help will be appreciated.
Please check that Аpitron.Core.Winrt.winmd is placed at the same folder as Аpitron.PDF.Rasterizer.dll.
Your PDF file requires external fonts and they could not be loaded at runtime without the types declared in metadata.

how to convert large image PDF file to PNG?

I have a large single-page PDF (about 700KB) that was automatically generated by the Trace2UML tool. This provides the means to generate a UML interaction diagram from the trace logs obtained while running an application. It has options to export the diagram to PDF and PNG file formats; however, due to the large image size, the PNG export fails, whereas the PDF export succeeds. So I have been looking for a way to conert this large file from PDF to PNG format.
I've googled this for for a couple of hours this morning. There are lots of programs and on-line services to do it, but none of them work with my file. When I load the file into PDF-XChange Viewer, it indicates that the image size is 136 x 11186 cm. So, definitely huge! Is there any way to convert this file?
For mac, the Preview could convert pdf to png (just open pdf and save as png), not sure if it works for large file though.