Skip to main content

Image management

Bagaimana untuk integrasi image ke media

Senario: Image yang diupload melalui Image field & image yang diupload mengunakan Insert media pada format asal adalah tidak diintegrasi. Maknaya, bila kita buka media maka image yang diupload mengunakan Inage field tidak dipaparkan. Begitu juga sebaliknya. Dengan mengunakan module  Image field to media, kita akan integrasikan image-image tersebut. Ini akan menyenangkan kerja.

  1. Aktifkan module Media & Media library  (core module)
  2. Install Imce dan pergi ke content type & check Allow users to select files from Imce File Manager for this field.
  3. Pergi ke Configuratrion  - Content authoring - Text format & editors - Full HTML  - masukan media
  4. Install Image field to media
  5. Aktifkan module
      Selesai..

Sekarang anda boleh membuka dan pilih semua image yang diupload sama ada di image field atau Insert media


Bagaimana untuk upload image sedia ada - install module berikut:

Langkah 1

  • Entity Browser - ini yang penting
  • Entity Embed
  • Dropzonejs

Nota: baca arahan dia untuk instal library

Langkah 2

  • Buka content type
  • Pada widget image - pilih Entity Browser
  • Save

Generally recommended image sizes for websites

Website Image TypeImage Dimensions (W x H)Image Aspect Ratio
Background Image1920 x 1080 pixels16:9
Hero Image1280 x 720 pixels16:9
Website Banner250 x 250 pixels1:1
Blog Image1200 x 630 pixels3:2
Logo (Rectangle)250 x 100 pixels2:3
Logo (Square)100 x 100 pixels1:1
Favicon16 x 16 pixels1:1
Social Media Icons32 x 32 pixels1:1
Lightbox Images (Full Screen)1600 x 500 pixels16:9
Thumbnail Image150 x 150 pixels1:1

Read more / source https://tiny-img.com/blog/best-image-size-for-website/

Recommended Image Sizes
Source: https://kb.swarthmore.edu/display/DRUPAL/Recommended+Image+Sizes

Recommended Sizes for Header Images

Image Type
Retina (WxH)
Standard (WxH)
Preferred Ratio
Preferred Orientation
Homepage - Single Image1756 x 1170878 x 5853:2, 16:9landscape

Homepage - Double Image (Front)

1056 x 704528 x 3523:2, 16:9landscape
Homepage - Double Image (Rear)880 x 662 440 x 3313:2, 16:9landscape
Homepage - Full Width3500 x 13601750 x 680customlandscape
Standard Page 1524 x 940 762 x 4703:2, 16:9landscape

Recommended Sizes for Panes

Image Type
Retina (WxH)
Standard (WxH)
Preferred Ratio
Preferred Orientation
Feature1530 x 1046765 x 523 landscape

Feature Link List

1300 x 858650 x 429 landscape
Image Slider (Slideshow)1600 x 1000 800 x 5008:5landscape
Image Slider (Gallery Thumbnails)720 x 476360 x 23816:9landscape
Multi-Column Callout600 x 600 300 x 3001:1landscape
Image Callout1560 x 1040780 x 520 landscape
Full Width Callout3500 x 12401750 x 620customlandscape
Callout on Image1300 x 900650 x 4503:2, 16:9landscape
Feature Story Callout (Left)1530 x 1046765 x 5233:2landscape
Feature Story Callout (Right)1070 x 698535 x 3493:2landscape
Audio (Thumbnail)298 x 298149 x 1491:1square
Ambient Video (Fallback Image)3500 x 14641750 x 732customlandscape

Recommended Sizes for Profiles

Image Type
Retina (WxH)
Standard (WxH)
Preferred Ratio
Preferred Orientation
Profile Headshot372 x 466 186 x 2334:5portrait

Recommended Sizes for News and Events Pages & Thumbnails

Image Type
Retina (WxH)
Standard (WxH)
Preferred Ratio
Preferred Orientation
Image Type
Retina (WxH)
Standard (WxH)
Preferred Ratio
Preferred Orientation
News Page (Standard)----
News Page (Featured)2880 x 12661440 x 63316:9, 3:2landscape
News Feed Pane (Standard Thumbnail)560 x 320280 x 16016:9, 3:2landscape
News Feed Pane (Featured Thumbnail)1760 x 960880 x 48016:9, 3:2landscape
News Feed Pane (Full Page Listing) 840 x 480420 x 24016:9, 3:2landscape
Events Feed Pane (Thumbnail)840 x 532420 x 33516:9, 3:2landscape
Events Feed Pane (Full Page Listing)840 x 670420 x 33516:9, 3:1landscape

Image for SEO

Google AdSense
client = ca-pub-2898279488603899
slot = 9058461004
format = auto