Skip to content
Menu
Open World News Open World News
  • Privacy Policy
Open World News Open World News

Category: Open Source

Tutoriel WordPress – Framework WordPress

Posted on August 12, 2022 by Michael G
Abonnez-vous à Grafikart: http://bit.ly/19nGK3G
A propos de ce tutoriel http://grafikart.fr/tutoriels/wordpress/framework-wordpress-150

Aujourd’hui je vous propose de découvrir mon petit Framework pour Wordpress. Ce framework a pour but d’améliorer la productivité lors du développement de thème en automatisant un maximum d’opération. Le but étant de se répéter le moins possible to…
Suivez nous sur Facebook:
https://www.facebook.com/pages/Grafikart/483920250642?fref=ts
Plus de tutoriels : http://www.grafikart.fr – Abonnez-vous à Grafikart: http://bit.ly/19nGK3G

Retrouvez un concentré du web autour du monde du développement web et du graphisme…
Formez vous et améliorez vos compétences à travers près de 161 heures de formation vidéo…

Plus de tutoriels : http://www.grafikart.fr

Droptica: How to Effectively Clip Photos? An Overview of the Crop API Drupal Module

Posted on August 12, 2022 by Michael G
Droptica: How to Effectively Clip Photos? An Overview of the Crop API Drupal Module

When creating a website whose editors will be working on content with photos, a problem often arises: how to manage the images so that the editor doesn’t have to manually edit them when they want to publish the same content with a different look? In Drupal, we can hit this problem when creating new view modes for any entity with images. The purpose of view modes is to serve the same content in a different form than the default one. For text or date fields, we will use different formatters. And for images?

Crop API and UI modules using this API

Drupal Core allows us to crop images without additional modules, but this functionality isn’t flexible enough to suit all needs. The Crop API Drupal module provides a basic API for more customized cropping of images. Its interface is used, for example, by Image Widget Crop. It provides a UI for cropping images, using predefined cropping types. It’s very useful for websites that publish articles with images or for media management websites.

Another module using Crop API is Focal Point. It allows you to determine which part of the image is the most important. This fragment is used when cropping or scaling an image so that – for example – one of the people present doesn’t lose their head.

The Crop API Drupal module – general information

The module was released on 17 November 2014, its latest version 2.2 was published on 18 February 2022. The module is continuously actively supported and developed. It’s compatible with PHP 8.1 and with Drupal ^8.8 and 9.

Popularity of Crop API

The module has more than 90 thousand installations. There are more and more of them every week, with an increasing trend since the first release. The newer version 2.x took three years to displace the older version 1.x. Currently, the vast majority of websites using Crop API use the newer version.

The statistics presenting numbers of installations of the Crop API Drupal module

Source: Drupal.org

Authors of Crop API

The original creator of the module is Janez Urevc (slashrsm). He works as a Senior Performance Engineer at Tag1 Consulting, where he develops and maintains web applications. He is an active member of the Drupal community – in 2014 he helped launch the media initiative for Drupal 8, where he worked with other community members to bring media in Drupal to an upgraded level.

The Crop API module is officially supported by MD Systems GmbH, and the main maintainers of the module, in addition to Janez, are Adam G-H (phenaproxima), Alexandre Mallet (woprrr), and the Drupal Media Team.

Installation

Crop API doesn’t require the installation of additional libraries. It only has dependencies on the Image and User modules, which are part of Drupal’s core. The installation is therefore carried out in the standard way. As always, we recommend installing the module using Composer.

composer require 'drupal/crop:^2.2'

The module provides two new permissions: Administer crop settings, allowing you to manage basic Crop API settings, and Administer crop types, which allows you to add, delete and edit defined crop types.

A place for managing permissions for the Crop API Drupal module where you can add or edit crop types

 

Use of the Crop API module

As we pointed out in the introduction, the Crop API module alone doesn’t allow for much. It should be seen as an interface that other modules can use. Nevertheless, it has several configuration options that we’ll try to explain.

Crop API provides a new entity type – Crop type. In this entity, we define the crop types we want to use.

Defining the crop types in the Crop type entity in the Crop API Drupal module

 

When adding a new crop type, we have the option to create several settings.

When adding a new crop type in the Crop API module, we can make new settings

Soft limit stretches the image to achieve the given proportions. Hard limit resizes and cuts off part of the image.

Hooks

Crop API provides one additional hook: hook_crop_entity_provider_info_alter. With it, we can change the information about the entity provider, which is calculated by default in the class DrupalcropAnnotationCropEntityProvider. In the hook, we have access to the $providers array. We can change it in order to, for example, edit the media provider title.

Extension modules

Crop API was created to serve as an interface that other modules can use. To obtain the full range of possibilities, it’s necessary to select one of the extension modules that best suits your needs in terms of functionality.

Image Widget Crop

The module provides a widget that allows the user to select one of the predefined crop types. It has a responsive mode for changing the type and for manual adjustment.

Selecting one of the predefined crop types with the Image Widget Crop

 

Option to manually crop an image in the Drupal Image Widget Crop module

 

Focal Point

The module allows us to specify the key point of an image, which will be treated as its center during the cropping process. If you’ve ever used an image whose important part for you has been cropped by scaling with a hard crop – this module will prove to be a salvation.

The Crop API Drupal module – summary

CropAPI is a useful tool that, in combination with supporting modules, provides customized functionality. The installation of this module is recommended if your website requires more flexible solutions than those available in the core.

Are you considering the choice of modules for your project? We’d be happy to suggest which tools would be most suitable for it. On a daily basis, we develop websites on Drupal and use a number of modules for this or create our own ones.

The Third Gosu Game Jam kicks off in just a few days on August 14th

Posted on August 12, 2022 by Michael G
Cast your votes to determine the theme and join the jam on itch.io

sftp-server(8) gains support for home-directory request

Posted on August 12, 2022 by Michael G

Damien Miller (djm@) has committed
home-directory request
to
sftp-server(8):

CVSROOT:	/cvs
Module name:	src
Changes by:	djm@cvs.openbsd.org	2022/08/11 23:20:28

Modified files:
	usr.bin/ssh    : sftp-server.c PROTOCOL 

Log message:
sftp-server: support home-directory request

Add support to the sftp-server for the home-directory extension defined
in draft-ietf-secsh-filexfer-extensions-00. This overlaps a bit with the
existing expand-path@openssh.com, but uses a more official protocol name,
and so is a bit more likely to be implemented by non-OpenSSH clients.

From Mike Frysinger, ok dtucker@

Boeing joins the ELISA Project as a Premier Member to Strengthen its Commitment to Safety-Critical Applications

Posted on August 12, 2022 by Michael G

Boeing joins the ELISA Project as a Premier Member to Strengthen its Commitment to Safety-Critical ApplicationsThe ELISA (Enabling Linux in Safety Applications) Project announced that Boeing has joined as a Premier member, marking its commitment to Linux and its effective use in safety critical applications.

The post Boeing joins the ELISA Project as a Premier Member to Strengthen its Commitment to Safety-Critical Applications appeared first on Linux.com.

a2ps @ Savannah: a2ps 4.14.92 released [alpha]

Posted on August 12, 2022 by Michael G

This alpha release reverts extensive whitespace changes to –help output, so
as not to annoy translators (thanks, Benno Schulenberg!).  These will be
restored before the next stable release in a “whitespace-only” change.

How to make app stores friendly to Open Source

Posted on August 12, 2022 by Michael G

App stores require that Open Source developers constantly jump through ever-changing hoops. This is an unsustainable demand. Read a proposal on how to change that.

The post How to make app stores friendly to Open Source first appeared on Voices of Open Source.

US political campaign emails can bypass Google’s spam filters under a newly approved pilot project

Posted on August 12, 2022 by Michael G
Federal election regulators voted Thursday to allow Google to proceed with a plan to make it easier for campaign emails to bypass spam filters. Google’s proposal to run a pilot project changing the filters for political emails came after intense Republican criticism that spam filters were biased against conservatives, a charge the tech giant denies. In a sign of public disgust with spam, the Federal Election Commission received thousands of public comments urging it to deny the request. But a majority of the six-member commission decided that Google’s project did not constitute an improper in-kind political contribution that would violate federal campaign finance laws. This reminds me of Twitter admitting it won’t ban nazis because that would mean banning accounts of Republican politicians. I remember the days being biased against nazis was a good thing. Times sure do change.

SQL Installation for Windows (SQL Server Management Studio)

Posted on August 11, 2022 by Michael G

Video by via Dailymotion Source Go to Source

Spider-Man.Far.From.Home.2019full movie English ( play the video x0.50 speed )

Posted on August 11, 2022 by Michael G

Video by via Dailymotion Source Go to Source

  • Previous
  • 1
  • …
  • 1,475
  • 1,476
  • 1,477
  • 1,478
  • 1,479
  • 1,480
  • 1,481
  • …
  • 1,529
  • Next

Recent Posts

  • Open Source email Clients
  • When and how to use benchmarking
  • How Plotly AI revolutionizes the dashboard development process
  • [TUT] LoRa & LoRaWAN – MikroTik wAP LR8 kit mit The Things Network verbinden [4K | DE]
  • Mercado aguarda Powell e olha Trump, dados e Haddad | MINUTO TOURO DE OURO – 11/02/25

Categories

  • Android
  • Linux
  • News
  • Open Source
©2025 Open World News | Powered by Superb Themes
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT