Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 100 for jpeg (0.02 seconds)

  1. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

        return result;
      }
    
      private String contentType(String path) {
        if (path.endsWith(".png")) return "image/png";
        if (path.endsWith(".jpg")) return "image/jpeg";
        if (path.endsWith(".jpeg")) return "image/jpeg";
        if (path.endsWith(".gif")) return "image/gif";
        if (path.endsWith(".html")) return "text/html; charset=utf-8";
        if (path.endsWith(".txt")) return "text/plain; charset=utf-8";
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 11 02:37:00 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/mylasta/direction/FessConfigTest.java

                    case FessConfig.APP_ENCRYPT_PROPERTY_PATTERN:
                        return ".*password|.*key|.*token|.*secret";
                    case FessConfig.APP_EXTENSION_NAMES:
                        return "jpg,jpeg,gif,png";
    
                    case FessConfig.JOB_MAX_CRAWLER_PROCESSES:
                        return "3";
                    case FessConfig.MAX_LOG_OUTPUT_LENGTH:
                        return "4000";
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 24.6K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/helper/FileTypeHelperTest.java

            fileTypeHelper.add("text/plain", "text");
            assertEquals("text", fileTypeHelper.get("text/plain"));
    
            fileTypeHelper.add("image/jpeg", "image");
            assertEquals("image", fileTypeHelper.get("image/jpeg"));
        }
    
        @Test
        public void test_get() {
            fileTypeHelper.add("application/pdf", "pdf");
            fileTypeHelper.add("text/plain", "text");
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

            // Verify other common MIME types still work (no special chars)
            assertTrue("text/html".matches("text/html"));
            assertTrue("application/pdf".matches("application/pdf"));
            assertTrue("image/jpeg".matches("image/jpeg"));
            assertTrue("image/png".matches("image/png"));
            assertTrue("image/gif".matches("image/gif"));
            assertTrue("image/tiff".matches("image/tiff"));
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 17.1K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/crawler/rule/CrawlerRuleMimeTypePatternTest.java

        }
    
        @Test
        public void test_webFileRulePattern_doesNotMatchImageTypes() {
            Pattern pattern = Pattern.compile(WEB_FILE_RULE_PATTERN);
            assertFalse(pattern.matcher("image/jpeg").matches());
            assertFalse(pattern.matcher("image/png").matches());
            assertFalse(pattern.matcher("image/gif").matches());
        }
    
        @Test
        public void test_fsFileRulePattern_xhtmlXml() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            assertEquals(".svg", generator.getExtensionFromMimeType("image/svg+xml"));
        }
    
        // Tests for JPEG MIME type
        @Test
        public void test_getExtensionFromMimeType_jpeg() {
            assertEquals(".jpg", generator.getExtensionFromMimeType("image/jpeg"));
        }
    
        // Tests for PNG MIME type
        @Test
        public void test_getExtensionFromMimeType_png() {
    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)
  7. src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java

            }
        }
    
        @Test
        public void test_isTarget_withVariousMimeTypes() {
            // Test with various MIME types
            String[] supportedTypes = { "application/pdf", "image/jpeg", "image/png" };
            String[] unsupportedTypes = { "text/plain", "application/xml", "audio/mp3" };
    
            for (String mimeType : supportedTypes) {
                Map<String, Object> docMap = new HashMap<>();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  8. src/main/resources/fess_thumbnail.xml

    			"${mimetype}"]
    		</property>
    		<property name="generatorList">
    			["${path}/generate-thumbnail"]
    		</property>
    		<postConstruct name="addCondition">
    			<arg>"mimetype"</arg>
    			<arg>"image/jpeg"
    			</arg>
    		</postConstruct>
    		<postConstruct name="addCondition">
    			<arg>"mimetype"</arg>
    			<arg>"image/tiff"
    			</arg>
    		</postConstruct>
    		<postConstruct name="addCondition">
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 6K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGenerator.java

            final String mimeType = responseData.getMimeType();
            if (mimeType == null) {
                return true;
            }
    
            return switch (mimeType) {
            case "image/png", "image/gif", "image/jpeg", "image/bmp" -> true;
            default -> false;
            };
        }
    
        /**
         * Processes and saves an image from the input stream to the output file as a thumbnail.
         *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 01 12:47:47 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/request-files.md

    ### `UploadFile` { #uploadfile }
    
    `UploadFile` has the following attributes:
    
    * `filename`: A `str` with the original file name that was uploaded (e.g. `myimage.jpg`).
    * `content_type`: A `str` with the content type (MIME type / media type) (e.g. `image/jpeg`).
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7K bytes
    - Click Count (0)
Back to Top