Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for imagemagick (0.05 seconds)

  1. src/main/assemblies/files/generate-thumbnail

    elif [[ x"${cmd_type}" = "ximage" ]] ; then
      im_cmd=$(get_imagemagick_cmd)
      if [[ -z "${im_cmd}" ]] ; then
        echo "ImageMagick (convert or magick) does not exist."
        exit 1
      fi
      target_file=$(echo "$url" | sed -e "s#^file:/*#/#g")
      # Build format hint from MIME type for better ImageMagick compatibility
      format_hint=""
      case "${mimetype}" in
        "image/gif")  format_hint="gif:" ;;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 04 08:02:36 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  2. src/test/resources/thumbnail/test_generate_thumbnail.sh

    echo ""
    echo "--- get_imagemagick_cmd function tests ---"
    
    # Test that ImageMagick is available (either convert or magick)
    if command -v magick >/dev/null 2>&1 || command -v convert >/dev/null 2>&1; then
        echo -e "ImageMagick available: ${GREEN}YES${NC}"
    
        echo ""
        echo "--- Image thumbnail tests (requires ImageMagick) ---"
    
        # Test: PNG thumbnail generation
        if [[ -f "${TEST_DIR}/400x400.png" ]]; then
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 04 08:02:36 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

            this.commandDestroyTimeout = commandDestroyTimeout;
        }
    
        /**
         * Gets file extension from MIME type for creating temp files with proper extensions.
         * This helps ImageMagick correctly identify file formats.
         * @param mimeType The MIME type of the content.
         * @return The file extension including the dot (e.g., ".gif"), or empty string if unknown.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 01 12:47:47 GMT 2026
    - 16.6K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            generator.setCommandDestroyTimeout(5000L); // 5 seconds
            generator.setBaseDir(new File(System.getProperty("java.io.tmpdir")));
            generator.setCommandList(Arrays.asList("imagemagick", "convert", "${url}", "${outputFile}"));
    
            assertTrue("Complete configuration should be valid", true);
    
            // Test minimal configuration
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 27.8K bytes
    - Click Count (0)
Back to Top