-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
Thank you very much for the addon, Theo!
I came across the following issue. I can't open a .jpg image if I have ofxKinectV2 in the addons.make file. Loading .png works fine.
addons.make
ofxKinectV2 <- Remove this to be able to load .jpg
ofApp.h
#include "ofxKinectV2.h" // comment this to be able to load .jpg
...
ofImage bImg;
ofApp.cpp
...
void ofApp::draw()
{
if (bImg.isAllocated())
{
bImg.draw(0, 0);
}
}
...
void ofApp::dragEvent(ofDragInfo dragInfo)
{
bImg.load(dragInfo.files[dragInfo.files.size() - 1]);
cout << "Path: " << dragInfo.files[dragInfo.files.size() - 1] << endl;
cout << "Dimensions: " << bImg.getWidth() << "x" << bImg.getHeight() << endl;
}
When I run the code above and drag a .jpg onto the canvas, I get the following on the terminal:
[ error ] ofImage: loadImage(): couldn't load image from ""/Users/kaua/Desktop/asd.jpg""
Path: /Users/kaua/Desktop/asd.jpg
Dimensions: 0x0
I'm using of_v0.10.1_osx_release on macOS 10.14.4.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels