Click here to Skip to main content
15,881,173 members
Everything / JPEG

JPEG

JPEG

Great Reads

by honey the codewitch
Create ASCII art from common image formats and text
by honey the codewitch
Use an ILI9341 display efficiently from an ESP32 without the Arduino framework. Load JPEGs.
by Shweta Lodha
Some tips on Windows Phone Apps
by Accusoft, Joseph Argento
This whitepaper describes a proven method for conveniently compressing PDF documents to reduce their storage footprint and accelerate their transmission and display speed.

Latest Articles

by honey the codewitch
Create ASCII art from common image formats and text
by ToughDev
How to use picojpeg library on a PIC with ILI9341 320×240 LCD module
by Hans-Peter Kalb
C# library for reading and writing EXIF tags in JPEG, TIFF and PNG image files
by honey the codewitch
Use an ILI9341 display efficiently from an ESP32 without the Arduino framework. Load JPEGs.

All Articles

Sort by Score

JPEG 

23 Oct 2023 by honey the codewitch
Create ASCII art from common image formats and text
4 May 2021 by honey the codewitch
Use an ILI9341 display efficiently from an ESP32 without the Arduino framework. Load JPEGs.
21 Jun 2012 by OriginalGriff
If you rotate an image, then there are three problems which may affect the image size.1) If you do not rotate it to a width and height which are the same as the original. For example, if you rotate a square image by 45 degrees, the resulting image needs a bigger square in which to sit - and...
5 Jul 2012 by Eugen Podsypalnikov
// How to load jpeg and bmp both type of images in Visual c++ 6 in MFC dialog based application?Try CImage::Load(..)[^] :)
22 Feb 2012 by Sergey Alexandrovich Kryukov
There are enough of ready-to-use utilities and libraries, such as Open Source and multi-platform ImageMagic. Please see:http://en.wikipedia.org/wiki/ImageMagick[^],http://www.imagemagick.org/[^].As it comes with command-line utilities, you can easy write a batch file of one or two lines,...
2 Feb 2022 by Chris Copeland
I think you've got most of the work done there, you just seem to be missing the part of the logic where you get the value from the select box which you can do using the following: # HTML ......
8 Jun 2012 by Manas Bhardwaj
try this:public void Base64ToImage(string base64String, string fileName){ byte[] imageBytes = Convert.FromBase64String(base64String); using (MemoryStream ms = new MemoryStream()) { ms.Write(imageBytes, 0, imageBytes.Length); using (FileStream fileStream =...
16 May 2013 by Shweta Lodha
Some tips on Windows Phone Apps
27 Jun 2013 by CPallini
You don't need to know the format of the JPEG files for manipulating them. You may, for instance load (and manipulate) them using GDI+ (see, for instance "Rotating, Reflecting, and Skewing Images"[^]).
19 May 2016 by Dave Kreskowiak
Your test is more than likely wrong somehow. Saving to a memory stream is always going to be faster than saving to disk.What is wrong? I have no idea since the code you posted doesn't show how you tested this and how it was timed.
15 Jun 2018 by ZurdoDev
Based on your comment, your ratio is way off. You can take a 200 x 100 image and put it into a 100 x 50 slot because the ratio is still the same so it will look good. But taking a 2213 x 519 (4.26 ratio) and stretching it to 920 x 174 (5.29 ratio) clearly is going to make the image blurry.
1 Feb 2022 by Richard Deeming
const output = document.getElementById("output"); for (let i = 1; i
2 Apr 2024 by Dave Kreskowiak
You posted this in a public forum with over 15 million users. The chances of Ragheed stumbling across this post is close to zero. If this is concerning an article he posted, there is a forum at the bottom of that article. Ask your question...
29 Oct 2012 by Richard MacCutchan
You already posted this question here[^]; please use one forum only per question.
27 Jun 2013 by nv3
If GDI+ is not an option for you, then I would recommend to use one of the many libraries for converting image formats. For example this one:CxImage[^]That doesn't mean you should not have a look at the JPEG specification, as Harvey suggested in Solution 2. It just means that the JPEG...
15 Aug 2013 by Mehdi Gholam
How is your batch file skills? Download the following : http://www.imagemagick.org/script/mogrify.php[^]Some more help here : http://www.ibm.com/developerworks/library/l-graf/?ca=dnt-428[^]
24 Oct 2013 by ZurdoDev
Personally, I would do it in a separate page. Just redirect to the page you need to, let them accept conditions and then move on to where you need to.You can open in a new window but if it is a requirement it seems to make more sense to keep it in the main UI.
8 Nov 2014 by Manas Bhardwaj
Did they block Google [^]at your place? Look at the links to start...
5 Dec 2014 by aarif moh shaikh
You can open your canvas data in anoter windows as printed format . where you can save it as pdf through ctrl+p StringWriter sw = new StringWriter(); HtmlTextWriter hw = new HtmlTextWriter(sw); yourCanvasId.RenderControl(hw); string canvasHTML =...
2 Jan 2015 by bling
Use libjpeg.http://libjpeg.sourceforge.net/[^]It will likely take some effort to compile for the PIC.
5 Apr 2017 by OriginalGriff
Why? To be honest, you are making life deliberately difficult for yourself, and involving processes that will do very little more than introduce errors. A jpeg image contains no text - plus it's a "lossy" compression format - so if you convert a dataset to a jpeg, you then need to use OCR to...
28 Feb 2023 by OriginalGriff
If I'm reading you right, you want to reconstruct a BMP file from a JPG? You can't do that: you can get a visually similar file, but not the original due to the way JPG compression works. JPG uses what's called a "lossy compression" technique:...
2 Apr 2024 by Pete O'Hanlon
You appear to be asking a question about something you found on an article. The chances of an author happening on a question about their article is extremely low. Go to the article and ask your questions in the forum at the bottom. Oh, and don't...
23 Oct 2011 by haiflosse
I search a software which I can compare a part of a picture (jpg, png, ...) if it is different or not.For example I want to compare the following 3 pictures on the left side of the red...
23 Oct 2011 by Mehdi Gholam
Image similarity is a very advanced topic which involves a lot of high end mathematics.Even the notion of similarity is vague as it could mean different things (byte comparison, similar colours, same picture but shifted etc.).Take a look at the following...
8 Jun 2012 by Richard MacCutchan
There was really no need to post the entire string here. It's a mime encoded file so you should Google for "mime jpg" and check out the rules, or possibly samples, for this type of encoding.
22 Jun 2012 by Tiberiu I.
I want make a program in VB which can rotate images with 90 degrees and then saves them as rotated (while viewing them, like the windows Picture Viewer).If I try to make an Image object, then rotate it and then save it then its size will differ (e.g. I had a file of 1.21 MB and after I...
21 Jun 2012 by Jαved
Hi,Go through this link-C# Image/PictureBox Rotations[^]Image Rotation in .NET[^]
22 Jun 2012 by MuhtarQong
Please try the following (after seeing your comment in solution 2): 1) If "you are inside .NET" you can only work with "Image" or "Bitmap" (in GDI or GDI+).2) You can use ".jpg" or ".jpeg" when you are saving images. However, all image processings happen with "Image" and "Bitmap" in the...
22 Jun 2012 by Tiberiu I.
An Image Viewer with Lossless Rotation, EXIF and Other Goodies[^]
22 Jun 2012 by Tiberiu I.
An Image Viewer with Lossless Rotation, EXIF and Other Goodies[^]
5 Jul 2012 by Shashwat Mehta
How to load jpeg and bmp both type of images in Visual c++ 6 in MFC dialog based application?If in this criteria its not possible then in any other type of specified application in Visual c++. Only bmp image is not required.Thanks in Advance
26 Jul 2012 by Schehaider_Aymen
Hello all, I have an input image file (jpeg) with a dpi of 200, I wanna make it 100 dpi. Wow can I do this in C++ ?Thank you in advance.
2 Sep 2012 by Misbah1
Hi,I want to convert pdf file to jpg image. I have found one method that by using imagemagick and ghostscript this goal can be achieved. I have installed ImageMagick-6.7.9-3-Q16-windows-dll and ghostscript in windows xp. Now please guide me how do i use them in my php code?Please guide...
4 Sep 2012 by Sergey Alexandrovich Kryukov
Please see my comment to the question. More likely that you need to resample the image. I assume you failed to find what you need in the documentation just because you did not know correct term. Now you can find it...
5 Sep 2012 by Dave Kreskowiak
THe problem is fairly easy to understand, but far more complicated to fix.The code you downloaded was poorly written and possibly for an older version of the .NET Framework, like 1.x.You cannot touch any forms or their controls from a seperate thread other than the one that created the...
29 Oct 2012 by Morpheus2matrix
Hi,Using C++, I'm trying to use the People Tagging feature by setting the PersonDisplayName property. I've tried this code:Tools::Check(piFrameEncode->GetMetadataQueryWriter(&piFrameQWriter)); // Add additional metadata.PROPVARIANT value;PropVariantInit(&value);value.vt =...
27 Jun 2013 by Nguyen Hung Duong
I wanna want to write a program which can rotate image, substract, add two image but I don't know how to read and write to JPEG file, and I do not know the format of JPEG file. Can someone help me?
27 Jun 2013 by H.Brydon
The file format for JPEG and how to build/manipulate one can be found here[^].
15 Aug 2013 by Dalek Dave
I have a folder with some images.The image names are serial (AD10001 - AD10010).The images are currently different sizes, (ie a 500x500, a 280x280 etc)I need 6 copies of each image, each one named in the format...
4 Sep 2013 by mccaber82
I am using the Kinect SDK to capture an RGB stream. I am capturing the data at: ColorImageFormat.RawBayerResolution640x480Fps30More info on available formats here. I want to store this stream on disk, so I am using a binary writer to write the raw frame bytes of the color image. This...
13 Oct 2013 by Peter Gibbins
I am writing an experimental project in VB.net to modify the colour data in a picture.I've finished the simple version using BMP file and now want to add JPEGsIf I'm right- JPEG compression reduces the colours slightly and then reduces file size by storing the colour data with a pixel...
13 Oct 2013 by OriginalGriff
I'm not sure your supposition is right... I believe the compression is considerably more complex than that - your method is a lossless compression, that isn't particularly efficient: jpg uses a Human vision system based around 8x8 blocksimage of process[^]wiki description[^]I suspect that...
29 Jan 2014 by Member 10558527
.welcome { PADDING-TOP: 0px !important}#WPQ4_nav_header { margin-left:220px; !important margin-right:auto;}#.ms-acal-header { margin-left:120px; !important margin-right:auto;}
1 Oct 2014 by Accusoft, Joseph Argento
This whitepaper describes a proven method for conveniently compressing PDF documents to reduce their storage footprint and accelerate their transmission and display speed.
9 Jun 2014 by Simon Bridge
Try here: http://www.fileformat.info/format/jpeg/egff.htm[^]
27 Oct 2014 by Filipe Morgan
I am looking for a simple solution for converting a PDF file into any image format. I am trying to avoid using paid libraries.The goal is to, after converion, show a preview of the first PDF page inside a panel. To accomplish that, I need to convert at least the first page of the file into...
8 Nov 2014 by twinkletwinkle
I need a software/tools which convert JPG image files to Binary data, later i want to convert same binary file to JPG.
5 Dec 2014 by Saffa Shujah
In this code drawing on a canvas is saves as a xml/XAML file.i need to export the canvas as PDF and JPG. I can't get them convered as the xaml is serialized. private void Save_Executed(object sender, ExecutedRoutedEventArgs e) { IEnumerable...
12 Dec 2014 by LEADTOOLS Support
The new Document Converter and Document Viewer found in LEADTOOLS Version 19 not only make it possible to view and annotate raster and vector based file formats in the same control, they make it easy.
14 Dec 2014 by KarstenK
Read this article.You must at first allocate a buffer which is big enough for the file data and than read it in.If you work with the jpeg the great article Imagestone may help you.
14 Dec 2014 by CPallini
You may read every file data into a byte buffer simply using standard ifstream facilities (on Windows you have to use the "binary mode"). On the other hand, if you need to extract info (e.g. pixel colors) from an image file then you have to use a specific API (e.g. the one provided by GDI+).
29 Dec 2014 by Eddy Chin
I am working on a project that required to read JPEG image in the SD card and display it to the LCD (using 32 bit PIC microcontroller). I am able to read the BMP image based on the Byte[] and plot to LCD pixel by pixel. However, how can we decode the JPEG image to pixel based on its Byte[]?Thanks.
17 Feb 2015 by Abhinav S
Many online tools do this for free - try http://pdf2jpg.net/[^].
3 Mar 2015 by rukhs
i have got a file in mail n the extension of this file is .jpg1.. (file name is imp.jpg1). when i am trying to open it...its opening in txt editor.showing the extension of file as (imp.jpg1.txt).... with some random symbols n numbers. hw cn i open it? plz help me ..its vry important.
3 Mar 2015 by OriginalGriff
Try copying the file, and renaming the copy as "imp.jpg"That may open. If it doesn't, then you need to either contact the source for clarification, or use a hex editor to look at the file content and identify what content type it actually is.
5 Mar 2015 by Xiao Ling
Someone had asked the question before on CodeProject. Please refer to Convert pdf file to Jpeg file[^]
3 May 2015 by Member 10781325
i found the solution:all thumbnails in a jpeg have the FFD8 (soi) flag, but they never have the jfif tag:-)
20 May 2016 by Patrice T
Quote:after my tests i found that save it as jpg file on disk is faster then on memory.Basically, It is impossible.You don't measure the same thing.your jpg file is first built in memory, and then wrote to disk. It is impossible the last operation which is extra makes the whole thing...
5 Apr 2017 by Patrice T
Quote: For instance, I want to turn this image into a table. My best advice: do it manually. Your picture is very low quality and any OCR will likely to fail. The fact that the text is languages names makes it even more difficult because those names are not in dictionary for most of them. With...
9 Jun 2018 by Member 11844954
I have Convert the RDLC FILE TO JPEG FORMAT AND THE FILE Format is ALSO IN JPEG FORMAT.I can see it in Pc(Windows10 os) . BUT I Send it throw whatsup web the image is not displayed and it shows only file format not image is displayed Full blank. my convertion code is also updated how to solve...
15 Mar 2019 by Member 12193983
Shucks. My mistake. I correctly moved/added my question to CodeProject "ExifLibrary for .NET" What I have tried: I see things like ExifLibrary GPSDestLongitude, ExifSRational and ToFloat(), but I have not found their correct Property-fetch usage
15 Mar 2019 by Dave Kreskowiak
If you're asking about a library from an article, post your question in the forum at the bottom of the article. There is no "your library". It doesn't belong to CodeProject, but to the author of the article.
15 Sep 2020 by Member 14666358
I have written C# code of live streaming of IP camera (JPEG) in windows form application using AForge library. It is working but it's lagging too much. Here is the code: using System; using System.Collections.Generic; using...
9 May 2021 by Indian Coder 2021
I am trying to make a online streaming service. but when i start converting images from one type to other it shows error. here is my code MyBitmapFile myFile = new MyBitmapFile(m_hDevice.ImageSize.Width, m_hDevice.ImageSize.Height, m_Frame); ...
9 May 2021 by OriginalGriff
We can't tell - but the most likely problem is that either JPG_IAMGE_STREAMis a path string and the path is not accessible to a Service because it doesn't run under your User credentials, or it is a Stream that doesn't support Seeking. Services...
3 Feb 2022 by PuppyDude
I am trying to display a specific image from different types of links using a dropdown option. What I want to do: I have six different types of links. These links needs to be added into a dropdown option. After the desired Option (category) is...
21 Apr 2022 by mrraggi
Hello All, Does anyone know a way to convert a EPL string to a image or pdf file? What I have tried: I can re-do the EPL file in ZPL format, but wanted to just print to an image.
21 Apr 2022 by Dave Kreskowiak
You're going to have to find some component, or write one yourself, to parse the EPL and render it to an image of your specifications. This isn't going to be a small piece of code. I'd probably start by Googling for "render epl".
28 Feb 2023 by Member 15930741
Here is a question about LIBJPEG, I want to compress "org.bmp" through the compression fingerprint of "temple.jpg" (DQT, SOF, DHT and other information). That is to retain the compression method of "temple.jpg" and reconstruct "org.bmp". Can this...
8 May 2023 by OriginalGriff
Your code generates and array channels_num times the size you fill. Since you don't check the value passed, you app can overwrite memory (if given channels_num = 0 or do what you see: fill only part of the array (if channels_num > 1) And if...
6 Mar 2016 by Jakub Szymanowski
The article presents idea and implementation of Fourier Transform (DFT and FFT algorithms) in Digital Signal Processing.
24 Jun 2021 by Hans-Peter Kalb
C# library for reading and writing EXIF tags in JPEG, TIFF and PNG image files
13 Mar 2015 by User 6918454
Light-weight image viewer for .NET 4.5.1, supporting multi-core processing
20 Apr 2016 by Varun Vasishtha
So I was doing a project of medical domain and I faced a big challenge to handle the Dicom files. The users of my application wanted to upload a zip file which contains some DICOM files and then they wanted to see it in image format. So I am sharing my efforts in the form of a sample project.
29 Jun 2011 by Ed Gadziemski
An updated version of the WTL BmpView sample application using an OLE Picture object to handle multiple image types
15 Aug 2013 by Sergey Alexandrovich Kryukov
I recently answered how to resize a bitmap using .NET. All I would to add just for you: do it in cycle and save all those files under the names of you choice. Please see this answer:resize image in vb.net[^].This is all really simple and can give you reasonable performance.The second...
5 Sep 2012 by RonNYC2
HI. I downloaded this project; it compiles and runs fine. BUT when I try to run it in Debug, I get an error. Specifically, I can run to the point of opening a file but as soon as the file is opened I get this error:Cross-thread operation not valid: Control 'SettingsGroupBox' accessed from a...
27 Oct 2014 by Richard Deeming
I generally use GhostScript[^] for this type of conversion. It's possible to load the DLL in-process and use P/Invoke to call it, but I usually shell out to the command-line version. That way, a corrupt or very large PDF won't affect my application.How To Convert PDF to Image Using...
9 May 2015 by Member 11677587
Try the Universal Document Converter. It can solve your problem of converting the PDF file.
7 May 2023 by ToughDev
How to use picojpeg library on a PIC with ILI9341 320×240 LCD module
18 May 2019 by RickZeeland
You can try the free and open source iSpy software: free-video-surveillance-software~ispy[^]
26 Jul 2012 by CPallini
If you are developing for the Windows platform then have a look at Resizing an image with GDI+[^].
22 Feb 2012 by Nithin Sundar
Hello, I have a doubt regarding image processing in .NET. Probably a little weird. I have images taken from my camera from time to time which are given ridiculous sizes of 5MB or more. I find that opening them in Paint and then saving them to a JPEG (once again) reduces the size to a...
27 Oct 2014 by Wandaboiii
// open and load the fileusing (FileStream fs = new FileStream(@"Documents\TestFile.pdf", FileMode.Open)){ // this object represents a PDF document Document document = new Document(fs); // default rendering settings RenderingSettings settings = new...
5 Apr 2017 by Member 13036251
I'm trying to take an image of a dataset in jpeg format and convert it to a table in excel. Anyone know how to do this? Doesnt need to be done programatically. For instance, I want to turn this image into a table. Link What I have tried: Insert from Object in Word and Convert Text to Table...
1 Feb 2022 by PuppyDude
I'm trying to fetch images from another URL using JavaScript or jQuery. The image URL is sequential. For example: www.example.com/images/1.png www.example.com/images/2.png www.example.com/images/3.png www.example.com/images/4.png etc... ...
5 Jun 2023 by Chillzy
On a different forum, I got clarity on how I should render the noise, this is the code I was provided that actually worked. void write_noise_2d(int w, int h, int channels_num) { // initialize noise fnl_state noise =...
2 Apr 2024 by Member 16235344
Brother Ragheed Al-Tayeb, I am using the Motion JPEG Streaming Server Demo version for 1 of my project it is working as design, the only issue I am having is the screen size, it is 50% of the window in the browser, Chrome, FireFox etc. Can you...
8 Jun 2012 by Member 8008820
Hi all!I have a SMTP Server in C#, it gets Mails with multipart input.I filter out a the picture part ans save it in a string...