Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VipsForeignLoad: "bmptest.bmp" is not a known file format #3993

Closed
JeanPenty opened this issue Jun 13, 2024 · 0 comments
Closed

VipsForeignLoad: "bmptest.bmp" is not a known file format #3993

JeanPenty opened this issue Jun 13, 2024 · 0 comments

Comments

@JeanPenty
Copy link

use version 8.15.2

		VipsImage* image = vips_image_new();
		image = vips_image_new_from_file("bmptest.bmp");
		if (image)
		{
			int left = 100;  // clip left
			int top = 100;    // clip top
			int width = image->Xsize - 200;  // clip width
			int height = image->Ysize - 200; // clip height
			VipsImage* cropped = vips_image_new();
			vips_crop(image, &cropped, left, top, width, height, NULL);
			vips_image_write_to_file(cropped, "cropped.png", NULL);
		}
		else
		{
			//
			std::ostringstream os;
			os << vips_error_buffer();
			std::string strErr = os.str();
		}

load bmp file failed
error:VipsForeignLoad: "bmptest.bmp" is not a known file format

@JeanPenty JeanPenty added the bug label Jun 13, 2024
@lovell lovell removed the bug label Jun 13, 2024
@libvips libvips locked and limited conversation to collaborators Jun 13, 2024
@lovell lovell converted this issue into discussion #3994 Jun 13, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants