Skip to content

Commit

Permalink
fix: Remove the freeimage dependency (#273)
Browse files Browse the repository at this point in the history
Remove the freeimage dependency

Log: Remove the freeimage dependency
  • Loading branch information
pengfeixx authored Dec 5, 2024
1 parent 2e7937e commit b284b14
Show file tree
Hide file tree
Showing 7 changed files with 153 additions and 1,006 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ _The **master** branch is current development branch, build dependencies may cha
* libxcb-util0-dev
* libstartup-notification0-dev
* libraw-dev
* libfreeimage-dev
* x11proto-xext-dev
* libmtdev-dev
* libegl1-mesa-dev
Expand Down
1 change: 0 additions & 1 deletion README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ _**master**分支是当前开发分支,编译依赖可能在未更新README.md
* libxcb-util0-dev
* libstartup-notification0-dev
* libraw-dev
* libfreeimage-dev
* x11proto-xext-dev
* libmtdev-dev
* libegl1-mesa-dev
Expand Down
1 change: 0 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Build-Depends:
# Deepin
# null
# 3rd party
libfreeimage-dev,
libexif-dev,
libstartup-notification0-dev,
libudev-dev,
Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ target_link_libraries(${BIN_NAME}
Dtk${DTK_VERSION_MAJOR}::Declarative
GL
pthread
freeimage
dfm${DTK_VERSION_MAJOR}-mount
${3rd_lib_LIBRARIES}
)
Expand Down
2 changes: 1 addition & 1 deletion src/src/imagedata/imageprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static void parseProviderID(const QString &id, QString &filePath, int &frameInde
}

/**
@return 使用 FreeImage 库读取 \a imagePath 的图像数据并返回
@return 读取 \a imagePath 的图像数据并返回
*/
static QImage readNormalImage(const QString &imagePath)
{
Expand Down
10 changes: 0 additions & 10 deletions src/src/unionimage/imageutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,6 @@ bool imageSupportSave(const QString &path)
return LibUnionImage_NameSpace::canSave(path);
}

//bool imageSupportWrite(const QString &path)
//{
// /*lmh0724使用USE_UNIONIMAGE*/
//#ifdef USE_UNIONIMAGE
// return UnionImage_NameSpace::canSave(path);
//#else
// return freeimage::isSupportsWriting(path);
//#endif
//}

bool rotate(const QString &path, int degree)
{
/*lmh0724使用USE_UNIONIMAGE*/
Expand Down
Loading

0 comments on commit b284b14

Please sign in to comment.