Crystal Reports Issue with Image not displaying when i re-open the report - crystal-reports-2008

I am Using Crystal Reports 2008. When I load a .JPEG, .PNG or .TIF, I see the image in my report, yet when I save the report and close Crystal Reports then re-open the report the image no longer appears. There is the location where the image should be and when I click where the image should be I only see the outline where the image should be. The image does take up a whole page. I have data that sits on top of the image. The image when created it put in the back. I tried leaving it in the front but get the same results when I close and re-open.

Try copy/paste the image rather than Insert Image. It usually works for me.

It is because of the size of the image. Try reducing the pixels and it will work. This occurred with me too but i resolved it by reducing size of image. Crystal is not going to show you this error but there is some limitation on the image size

Reducing the image colors helped in my case. I saved the image as 256-colors PNG instead of JPEG and worked fine.

Related

How to reduce the size of a crystal report with OLE image and datasets without loosing resolution

I am trying to reduce the size of a crystal report , where in I have converted the image from PDF to BMP and then inserted as an OLE object in to the crystal report. In doing so , The color (Black and white) was still rich and the words in the image are clear.
Using CR 2008
However, The crystal report size is increased to more than 8 megs , which is a lot for the report with a single page.
I have searched online on how to reduce the size of the CR , I have found one answer where , Use photoediting tools , the image to GreyScale and add as OLE object , however in doing so , the image resolution has gradually decreased.
I am still looking for a solution where I can decrease the size of the CR to less than 3 megs with out compromising the image quality in the report.
P.S: My first question on StackOverflow. :)
Do not convert to another format because Crystal manages the image internally as bitmap.
Reduce color depth. For example, convert from full color to grayscale.
Load the rpt in Crystal and go to
File, Report Options...
And turn on the checkbox for 'Retain Original Color Depth'.
If you need to resize the image, do so outside Crystal. Resizing an image inside Crystal can cause it to consume more memory.
I only stumbled across this question as you had Reporting Services tagged (I've now removed that tag from your question). I'm no Crystal Reports person but I suspect most of the file size is in the BMP. BMPs are uncompressed so they are big, especially compare to other file formats.
You should be able to convert to a PNG or JPEG with low compression and this will reduce the size of the image considerably. Play around with different compression levels when saving to see what works best but I would start at about 90%.
If you need a free (Windows) tool where you can set the compression when saving an image, try paint.net ( https://www.getpaint.net/ ) It's completely free, open source and simple.

save image png and retrieve to pictureBox or Crystal Report become different image

i have a problem with image PNG where i stored to database sql server with fieldtype's image.
this is my image where i stored to database.
this is when i upload it to picturebox
then i retrieve it again to pictureBox
that image become like this..
i think it will different in crystal report..but when i retrieved it to Crystal Report..that image still with black background..
show image to PictureBox with transparant background must be save with format Png like this..
pictureBox1.Image.Save(stream, ImageFormat.Png);
it resolved my problem to retrieve image Png with transparant background from Database to PictureBox..
and for image at Crystal report...
i found this articel ..
"When you insert an image of any of the supported formats in a report, Crystal Reports will convert the image into a Windows Bitmap format (BMP), which does not support transparency."
thanks

Reg:Display image on crystal report

We are using Crystal report XI, have to show image on the report, right now we are able to show the images. here my problem is we are cropping the image with a fixed width and height then converting the image into binary array (one way to display images on report) in this way images are blurred. Reason to do like this is we may have big size images also for that we are cropping images. Is there any way to display images with fixed size in the report.
Note: We may have small and big images also finally we need to display with a constant size on report.
Regards,
Chakradhar.
Why don't yo store the pictures as binary in the database and save yourself the conversion when inserting them into the report? You would need a BLOB column in your database in order to be able to insert the pictures into your database. Alternatively you could insert the images as OLE objects instead of pictures and also decreasing the color depth and using the bitmap format (.bmp) will help you keep the file size down.

Drupal 7 Image Styles saving thumbnails in the large styles folder

I'm not sure if anyone else has had this problem or not but here goes.
I've set up my local environment with the following modules
Image Crop
ImageMagick
Colorbox
All other image modules are in core i.e. imagefield, imagecache etc.
The problem i'm having is in when I save an image in my content type, after uploading and cropping, I'll go to the page click on an image and it will only show the thumbnail in the colorbox, I've made all the correct setting available in field display in my content type to show the large image style in the colorbox but will always only show the thumbnail, when I checked whether the large image was saved in its directory i found that it was only saving the thumb there as well.
Does anyone have any insight into what my issue is?
Thanks.
Because you're using the Image Crop module, you want to be referencing the original image in display settings for the full colorbox.
Make sure the image settings "The resolution to crop the image onto" are the correct dimensions as well.

SSRS can't properly render *some* images within PDF

I have a report that renders images (jpg) that have been collected from various sources. This works fine within the report viewer, and when exporting via Excel.
However, when exporting to PDF, about 5% of the images are rendered incorrectly as can be seen below, with the original on the left, and what is rendered on the right;
I find that if I open up one of these images in mspaint, and just click save, on the next report-run the image is now rendered correctly.
Are there any rules as to what image properties/format are valid for SSRS to render the image correctly within a PDF? Essentially I'd like to somehow find these images that will render incorrectly before the report is run and fix them prior...
Current Workaround
I never ended up getting SSRS to display the the problem images as they were, however, determining before running the report which images would be included in the non-displayable set so they could be converted to a supported format (automatically) was also a solution.
In my case, all images were supplied via users uploading to a website, so I was able to identify and convert images as they arrived. For all existing images, I was able to run a script that identified the problem images and convert them.
Identifying problem images
From the thousands of images I had, I was able to determine that the images that wouldn't render correctly had the following properties:
Image had CMYK colorspace or;
Image had extended color profiles or;
Both of the above
Converting an image
I was originally using the standard .NET GDI (System.Drawing) to manipulate images however the API is often prone to crashes (OutOfMemoryException) when dealing with images that have extra data. As such, I switched to using ImageMagick where for each of the identified images I:
Stripped the color profiles and;
Converted to RGB
Note that the conversion to RGB from CMYK without stripping the color profiles was not enough to get all images to render properly.
I ended up just doing those items on every image byte stream I received from users (without first identifying the problem) before saving an uploaded image to disk. After which, I never had the rendering problem again.
Because of the way the output looks I would say those JPEG images have CMYK colorspace but the SSRS assumes they use RGB colorspace and sets the wrong colorspace in PDF.
If you can post a JPEG image and a sample PDF I can give you more details.
I've had exactly the same problem with an image rendering correctly on screen but appearing like the one in the question when I exported the report to PDF. Here's how I solved it.
The Problem
The first clue was this article I came across on MSDN. It seems that regardless of the original image density, the PDF renderer in SSRS resizes all images to 96 DPI. If the original size of the image is larger than the size of the page (or container), then you will get this problem.
The Solution
The solution is to resize the source image such that it will fit on your page. The requires a little calculation depending on your page size and margin settings.
In my case, I'm using A4 paper size, which is 21cm by 29.7cm. However, my left margin is 1.5cm, and my right margin is 0.5cm, for a total inner width of 19cm. I allow an extra 0.5 cm as a margin of error, so I use an inner width of 18.5cm.
21 cm - 1.5 cm - 0.5 cm - 0.5 cm = 18.5 cm
As noted before, the resolution generated by the PDF renderer is 96 DPI (dots per inch). For those of us not in the United States or Republic of Liberia, that's 37.79 DPC (dots per centimetre). So, to get our width:
18.5 cm * 37.79 dpc = 699 pixels
Your result may be different depending on (1) the paper size you are using, and (2) the left and right margins.
As the page is higher than it is wide, we need only resize the width while keeping the image proportional. If you're using a paper size which is wider than it is tall, you'd use the length instead.
So now open the source image in Paint (or your image editor of choice), and proportionally resize the image to the desired width (or length) in pixels, save it, import it into your container, and size the image visually with respect to the container. It should look the same on screen, and now render correctly to PDF.
This is an issue reported to Microsoft Connect.
From SSRS 2008 How to get the best image quality possible?:
The image behavior you see in PDF is a result of some image conversions that the PDF renderer does, based on how the PDF specification requires that serialize images into PDF.
We know it's not ideal, and we classify the loss of image quality as a product issue. Therefore, it's difficult to really say what to do to get the best quality image.
Anecdotally, I have heard that customers have good results when the original image is a BMP

Resources