-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Feature request: Add option to import JPG images (as BLOB) #1188
Comments
Ahhh. I think the type of files supported depends on us including Qt plugins. From faint memory, it might be as simple as us creating a "plugins" subdirectory in the location we install to, and copying the correct plugin pieces into it. Haven't looked into it yet, but it might not be too hard. 😄 |
Seems to be related to #579. Did we miss that for the 3.10.0 release? 😄 |
Yep.
My feature request is pretty much a duplicate of 579...At present, on Windows (7 - 10) you can only import .png images (and other formats).
Unfortunately, It is not possible to import jpeg images. Which, by their own nature, are easy to compress in order to store them into databases later on.
BTW, this option (store blob into database) is not available on SqliteStudio and this is one of my reasons for having switched currently to SqliteBrowser :-)
THANKS a lot for your work on SqliteBrowser !It is extremely appreciated.
|
Yeah, we missed that. Figuring out this plugin thing has been on my wish list for a while... I've just not really gotten around to figuring out how to get it done. 😄 We can probably start with (say) Windows first, and once that's been figured out it shouldn't be too hard to copy the approach to also work on OSX. Linux/BSD though, I'm not sure about. We might have to investigate how other Qt applications do things there. That's a problem for a later date. 😄 |
Hello everyone,
I suppose only Kexi, as regards other open source softwares (Qt GUI and C++ code), has this feature : store images as blob
Unfortunately, Kexi 3 is not available on Windows and I can not truly test this option.
Besides its development is extremely slow, to say the least...
SqliteStudio (QT GUI) does not support blob images. It has been in its roadmap for ages but never implemented so far. In addition, it looks like this software is no longer developed, which is a pity since it is extremely powerful as GUI options....
Concerning Sqlite Db, I also work with SpatiaLite (wxPython GUI) which is an open source GIS software which is able to import jpeg images as blobs.
This being noted, IMHO, since you can already store png images with SqliteBrowser, I suppose the jpeg format option should not be a top priority in the roadmap :-)
|
😄 I'll close this as a duplicate of #579, as we're trying to keep the open issue count from exploding tooooooo much. 😄 |
@SilvioGrosso If you're interested in putting some effort into this, you can try downloading the right Qt version from here, installing it, and trying to locate the JPEG plugin DLL. There's probably somewhere in the installation directory a directory called plugins with an imageformats directory in it. From there you should be able to just copy all files (or all you need) into a newly created sub-directory called "plugins" in your SQLiteBrowser/DB4S directory, if that makes sense 😉 I can't go into any details here because I don't have a Windows system available right now. But in theory it should just work with the right DLL in the right place. |
If someone has time to do that, and report success/failure, that would be really helpful. The Qt version we use for the Windows builds is Qt 5.7.1. That can definitely still be downloaded from the Qt website. 😄 |
Hello everyone !
Just downloaded:
qt-opensource-windows-x86-winrt-msvc2015-5.7.1.exe
My system is:
Windows 7 - 64 bit (Cpu Intel I7)
I have updated SqliteBrowser by installing today's new Windows x64.exe version.
I have copied-pasted the QT 5.7.1 folder with all jpeg .dlls library (renamed plugins, as requested).
Here is a Dropbox link to download this Qt folder, which I have pasted into the directory where I have installed SqliteBroweser:
https://www.dropbox.com/s/yw8wzn0zuhs4vvt/plugins.zip?dl=0
|
Sorry about my previous post :-( |
Hmm, two more ideas then:
|
Nope :-)
Both suggestions do not work (imageformats renaming + paste all files into main folder).
Do not worry though. At present, I can manage without this feature (jepg support on Sqlitebrowser).
To my knowledge, only SpatiaLite, as an open source software GUI, has this feature properly implemented on Windows.
At present, however, to get a real *top-notch* support for blob images on Windows you are forced to buy some commercial software (e.g. SqliteMaestro)
Thanks a lot for your work on SqliteBrowser. This software has really improved these past months ! :-)
|
Ahhh, I think it's probably a mismatch on the MSVC version. We're still using MSVC 2013, and looking at the Qt 5.7.1 archives it has separate downloads for MSVC 2015 vs MSVC 2013. The "winrt" bit in the filename you grab make me think it might be wrong too. We're definitely not using the WinRT bits, as we're building for Win7 and above. I probably should have thought to check this stuff before. Sorry. This seems like it would be the right one: You'd probably want to uninstall the one you installed earlier too, just to make sure there's no chance of it's library files somehow getting picked up by the system. Hopefully that works. 😄 |
Hello Justin ! Just installed the Qt 5.7.1 downloaded thanks to your last link. To make it short it does not work. In essence:
My best regards |
Not sure if this is necessary because the documentation says that it is automatically added but it's worth a try. See issue #1188.
One more try 😉 Can you install tomorrow's nightly build and check again if it works with the plugins directory? |
You nailed ! :-) Just tested on 3 different systems: Windows 7 + 8.1 + 10 (x64 bit) with today's daily build. Here is the link to download from Dropbox these QT 5.7.1 dlls librairies: I have even uploaded on YouTube a short video tutorial (I hope you don't mind): Thanks a bunch indeed ! |
That's awesome. Added it to the front page of our wiki, in a new "Videos for Users" section. Want to create more? 😀 |
Awesome 😄 I'm glad this is finally working now! @justinclift Do you have any experience with this part of the CMakeLists.txt file to somehow include the files in the installer? We would need to copy the .dll files (.dll for release model, *d.dll for debug mode) from that Qt plugins/imageformats directory to the imageformats directory in our installation dir. Also we would need to include different DLLs depending on whether we're building the 32bit or the 64bit version. I'm guessing that this would just work with our current build process but I'm not sure 😉 @SilvioGrosso Thanks for your time and effort on this 👍 Since you seem to know all the other SQLite GUIs and I have never really bothered looking into them, if you feel like we're missing some important feature or two, feel free to open an issue for that, too 😉 |
@MKleusberg Yep. Just finished setting up a new Win7 development VM to try things out in, as I don't want to screw up our build one (just in case). I should be able to get this figured out... 😄 |
Hmmm, it's probably better to continue the conversation in the other issue. 😄 |
Hello everyone,
Please, add an option to import into Sqlite databases jpeg images.
Currently, on Windows 10 - Windows 7 (64bit .exe installer) I can import - export png images.
With png everything works fine. For instance, I can drag them into my Database through the GUI.
On the contrary, it looks like jpeg images are not supported at all.
At least on Windows, maybe on Linux it is different...
I am testing the 3.10.99 version (on Windows 7 - 10)
QT 5.7.1
Sqltie 3.20.0
I have also:
Tried out the latest nightly version: https://github.com/sqlitebrowser/sqlitebrowser#nightly-builds
Thanks a lot !
The text was updated successfully, but these errors were encountered: