### Install aqtinstall and Qt on Linux Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/compilation.md Use pip to install the aqtinstall tool and then use it to download and install a specific version of Qt for Linux desktop development with the specified modules. ```bash pip install aqtinstall aqt install-qt linux desktop 6.6.3 gcc_64 -m qtmultimedia qtimageformats qtnetworkauth qtshadertools ``` -------------------------------- ### Install Grabber via Homebrew Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/install/macos.md Execute this command after adding the tap to install the Grabber application using Homebrew. ```bash brew install imgbrd-grabber ``` -------------------------------- ### Install Grabber via Flatpak Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/install/linux.md Install the Grabber application using Flatpak from the Flathub repository. ```bash flatpak install flathub org.bionus.Grabber ``` -------------------------------- ### Install Qt6 using Homebrew Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/compilation.md Installs the Qt6 framework using the Homebrew package manager on macOS. ```bash brew install qt6 ``` -------------------------------- ### Install Translation Files Source: https://github.com/bionus/imgbrd-grabber/blob/master/src/languages/CMakeLists.txt Installs the generated .qm translation files to the appropriate destination directory based on the operating system. For Apple/Unix systems, it installs into the application bundle; otherwise, it installs into a general share directory. ```cmake if(APPLE AND UNIX) install(FILES ${QM_FILES} DESTINATION Grabber.app/Contents/Resources/languages) else() install(FILES ${QM_FILES} DESTINATION share/Grabber/languages) endif() ``` -------------------------------- ### Install Build Tools on Fedora Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/compilation.md Installs the C++ compiler, CMake, and make utilities on Fedora using dnf. ```bash sudo dnf install -y "gcc-c++" "cmake" "make" --best ``` -------------------------------- ### Install Open Package for Browser Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/commands/danbooru.md Installs the 'open' Node.js package globally, required for opening new images in the browser. ```bash npm install -g open ``` -------------------------------- ### Initialize Blacklist and Cookie Setup Source: https://github.com/bionus/imgbrd-grabber/blob/master/src/lib/tests/resources/pages/idol.sankakucomplex.com/results.html Sets up blacklist options and initializes blacklisted items. Also sets up cookies. ```javascript Post.blacklist_options={replace:false};Post.init_blacklisted(); Cookie.setup() ``` -------------------------------- ### Install Homebrew and Dependencies on macOS Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/compilation.md Installs Homebrew, Qt6, and GCC compiler required for building the project on macOS. ```bash ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install qt6 brew install gcc brew install cmake ``` -------------------------------- ### Install Database Support Packages Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/compilation.md Install necessary packages for database support on Debian-based systems like Raspbian. ```bash sudo apt install libqt5sql5-mysql sudo apt install libqt5sql5-odbc sudo apt install libqt5sql5-psql ``` -------------------------------- ### Token with Options Example Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/filename.md Demonstrates how to add options to a token, including setting a value and omitting it for a boolean option. ```text %token:option1=value1,option2% ``` -------------------------------- ### Project and Testing Setup Source: https://github.com/bionus/imgbrd-grabber/blob/master/src/gui/tests/CMakeLists.txt Initializes the CMake project for GUI tests and enables testing. Defines a general test macro. ```cmake project(gui-tests) # General enable_testing() add_definitions(-DTEST=1) ``` -------------------------------- ### Run Grabber via Flatpak Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/install/linux.md Launch the Grabber application after installing it with Flatpak. ```bash flatpak run org.bionus.Grabber ``` -------------------------------- ### Install Translation Files Source: https://github.com/bionus/imgbrd-grabber/blob/master/src/crash-reporter/languages/CMakeLists.txt Installs the generated QM translation files to the appropriate location based on the operating system. Use this to ensure translations are available at runtime. ```cmake if(APPLE AND UNIX) install(FILES ${QM_FILES} DESTINATION Grabber.app/Contents/Resources/crashreporter) else() install(FILES ${QM_FILES} DESTINATION share/Grabber/crashreporter) endif() ``` -------------------------------- ### Compile QScintilla on Linux Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/compilation.md Steps to compile and install QScintilla from source on Linux, including running qmake, make, and make install. ```bash cd src qmake qscintilla.pro make make install ``` -------------------------------- ### Install Build Tools on Debian/Ubuntu Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/compilation.md Installs the g++ compiler, CMake, and make utilities on Debian-based Linux distributions using apt. ```bash sudo apt install -y "g++" "cmake" "make" ``` -------------------------------- ### Compile QScintilla on Windows Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/compilation.md Steps to compile and install QScintilla from source on Windows using the Qt command prompt and nmake. ```bash cd src qmake qscintilla.pro nmake nmake install ``` -------------------------------- ### Set Runtime Output Directory and Install Target Source: https://github.com/bionus/imgbrd-grabber/blob/master/src/gui/CMakeLists.txt Configures the runtime output directory for non-Android builds and installs the target executable to the 'bin' directory on the system. ```cmake set_target_properties(${PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/gui/$<0:>" OUTPUT_NAME "Grabber") install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin) ``` -------------------------------- ### Install NodeJS Global Packages Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/commands/danbooru.md Installs the axios and form-data Node.js packages globally. Ensure NODE_PATH is set correctly. ```bash npm install -g axios form-data ``` -------------------------------- ### HTML Form Example for POST Login Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/website-login.md This HTML form structure is used as an example to configure the 'POST' login method. It shows the typical fields required for a login submission. ```html
``` -------------------------------- ### Date Formatting Examples Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/filename.md Demonstrates various date and time format specifiers for filename customization. Ensure to avoid OS-forbidden characters in your format string. ```text dd.MM.yyyy 21.05.2001 ``` ```text ddd MMMM d yy Tue May 21 01 ``` ```text hh:mm:ss.zzz 14:13:09.042 ``` ```text h:m:s ap 2:13:9 pm ``` -------------------------------- ### Conditional Token Example - Artist Present Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/filename.md Example output when both 'artist' and 'character' tokens are present in the image data. ```text image - %artist% some text test %md5%.%ext% ``` -------------------------------- ### Install AUR Package on Arch Linux Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/install/linux.md Install an imgbrd-grabber package from the Arch User Repository (AUR) using paru. ```bash paru -Sy imgbrd-grabber-bin ``` -------------------------------- ### Date Formatting with Custom Format Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/filename.md Example of applying a specific date format string to the current date. ```text %date:format=yyyy-MM-dd% 2001-05-21 ``` -------------------------------- ### Install GCC Compiler using Homebrew Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/compilation.md Installs the GNU Compiler Collection (GCC) using Homebrew on macOS, which may be needed for compilation. ```bash brew install gcc ``` -------------------------------- ### Executable Files Location Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/portable-version.md This is the default directory where the program's executable files are installed. ```plaintext "C:/Program Files/Grabber" ``` -------------------------------- ### Add Homebrew Tap for Grabber Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/install/macos.md Use this command to add the necessary repository for installing Grabber via Homebrew. ```bash brew tap Bionus/imgbrd-grabber ``` -------------------------------- ### Tag Loader Log Example Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/tools/tag-loader.md This log indicates that the source might benefit from a pre-loaded tag database. It specifically points out issues with loading tags from filename tokens. ```text Not enough information to directly load the image (from blacklist: 0 / from file url: 0 / from filename tags: 1/1) ``` -------------------------------- ### Time Zone Override Examples Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/filename.md Illustrates how to specify different time zones for date formatting, including server, local, and IANA time zones. ```text %date% 05-18-2021 17.32 ``` ```text %date:timezone=server% 05-18-2021 17.32 ``` ```text %date:timezone=local% 05-18-2021 23.32 ``` ```text %date:timezone=UTC% 05-18-2021 22.32 ``` ```text %date:timezone=Europe/Paris% 05-18-2021 23.32 ``` -------------------------------- ### ExifTool Field Mappings (Configuration) Source: https://context7.com/bionus/imgbrd-grabber/llms.txt Example configuration for mapping Grabber metadata fields to ExifTool tags for embedding into image files. Shows sidecar file modes. ```text # Example Exiftool field mappings in Grabber settings: IPTC.Keywords → %all% XMP.Creator → %artist% XMP.Description → %copyright% %character% # Sidecar file modes: # - Disabled : never write .xmp sidecar ``` -------------------------------- ### Blacklist Syntax Example Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/search.md Illustrates how to define blacklist rules, where each line represents a condition for an image to be considered blacklisted. These rules use the same syntax as post-filters. ```plaintext tag1 tag2 tag3 tag4 rating:safe ``` -------------------------------- ### Enable Binary Logging for Gelbooru Source: https://github.com/bionus/imgbrd-grabber/blob/master/docs/docs/commands/gelbooru.md This SQL command is required during the Gelbooru installation process to enable binary logging, which is necessary for certain database operations. ```sql SET GLOBAL log_bin_trust_function_creators = 1; ``` -------------------------------- ### CSS Stylesheet for UI Theming Source: https://context7.com/bionus/imgbrd-grabber/llms.txt Example Qt stylesheet for customizing the Grabber application's user interface. This allows for dark themes with light text and custom tab styling. Refer to the Qt stylesheet documentation for more options. ```css /* style.css example — dark background with light text */ QMainWindow { background-color: #1e1e1e; color: #d4d4d4; } QTabBar::tab:selected { background: #007acc; color: white; } /* Full Qt stylesheet reference: https://doc.qt.io/qt-5/stylesheet-reference.html */ ``` -------------------------------- ### XML Site Configuration Example Source: https://github.com/bionus/imgbrd-grabber/wiki/New-XML-source-(legacy) This XML structure defines the configuration for a website source, including its name, various API endpoints (XML, JSON, HTML), and regular expressions for parsing specific data like tags, images, and pagination. ```xml