imagemagick,typo3,typoscript,yag , TYPO3 6.2 scaling img using gifbuilder did't work

TYPO3 6.2 scaling img using gifbuilder did't work


Tag: imagemagick,typo3,typoscript,yag

After upgrading TYPO3 from version 6.2.9 to 6.2.10 the scaling images using GIFBUILDER didn't work. When I'm testing image processing in Instal Tool everything looks ok, byt when I want to change img using GIFBUILDER scaling img didn't work. My actual configuration looks like this:

'GFX' => array(
    'colorspace' => 'sRGB',
    'gdlib_png' => '1',
    'im' => '1',
    'im_mask_temp_ext_gif' => '1',
    'im_noFramePrepended' => '1',
    'im_noScaleUp' => '0',
    'im_path' => '/usr/local/bin/',
    'im_path_lzw' => '/usr/local/bin/',
    'im_stripProfileCommand' => '-strip',
    'im_v5effects' => '-1',
    'im_version_5' => 'im6',
    'image_processing' => '1',
    'jpg_quality' => '70',
    'thumbnails' => '1',
    'thumbnails_png' => '1',

And code who works "yesterday" looks like that:

plugin.tx_yag.settings.themes.default {
  resolutionConfigs {

        thumb >
        thumb = GIFBUILDER
        thumb {
            XY = [10.w],[10.h]

            format = jpg
            quality = 60

            10 = IMAGE
            10 {
            file.maxW >
            file.maxH >
            file.width = 380c
            file.height = 240c
            file.width.override.field = imagewidth
            file.height.override.field = imageheight
            file.import.field = yagImage

      albumThumb < plugin.tx_yag.settings.themes.default.resolutionConfigs.thumb
      galleryThumb < plugin.tx_yag.settings.themes.default.resolutionConfigs.thumb

        medium >
        medium = GIFBUILDER
        medium {
            XY = [10.w],[10.h]

            format = jpg
            quality = 65

            10 = IMAGE
            10 {
            file.maxW = 783
            file.maxH = 600
            file.import.field = yagImage

            // Load watermark image file
            20 = IMAGE
            20 {
               file = fileadmin/media/watermark_logo.png

               // Center the watermark image (for a watermark size of 100x100px): offset = [10.w]/2-50,[10.h]/2-50
               offset = [10.w]-190,[10.h]-40

Every images generated by previous code cropping original image to maxW and maxH dimension, but not scaling, so I have only 1/4 of each img.

Any ideas what goes wrong?


Probably this issue was posted on forge

If so, I think you should add your comments to the this thread. This will speed up reaction of TYPO3 team.


Zoomming into an image with ImageMagick

I would like to zoom into an image test.png. That is, as a silly example, I would like to go from this to this The only way I was able to do it was with convert -resize 110% test.png -gravity Center \ -crop 800x600+0+0 +repage 1.png This is re-scaling the...

Where are TYPO3 constants from constant editor stored?

In Typo3 Backend -> Template -> Constants there is a constant editor. Where does TYPO3 saving the constants? Tried an fgrep -ri for an existing pattern, in case of saving to filesystem - no matches. Tried an MySQL search for an existing pattern, in case of saving to DB -...

Replace URLs in Typo3 DB

So I have a Site created with Typo3. I also have a domain which is linked to the folder of the Typo3 Installation. I created a Subdomain and linked it to the same folder and used the Main Domain for something else. But now everything on the Subdomain still...

google sitemap for tx_news records with dd_googlesitemap_dmf (or alternative)

I try to let typo3 generate a sitemap for all the news records. For that I tried the dd_googlesitemap_dmf extention. The dd_googlesitemap works (it creates a sitemap for all the typo3 pages - but not for extensions). I filled in the basic infos into the configuration and called the url...

how to divide image into three equal parts in php imagemagick and combine with some padding and output as single image

I want to display an image into three parts as triptych with the help of imagemagick PHP library. I saw the same example here Can anyone help me on this issue please ...

Using FAL in Extbase correctly

Domain model class Image extends AbstractContent { /** * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference */ protected $file; /** * Gets the image file * * @return \TYPO3\CMS\Extbase\Domain\Model\FileReference */ public function getFile() { return $this->file; } /** * Sets the image file * * @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $file * @return void */ public function setFile($file)...

TCropping images with loop in imagemagick

A pretty basic question but I'm new to Imagemagick (and bash) and I'm having trouble batch cropping images in a folder. I've tried using a loop: for image in '/home/donald/Desktop/New Folder'*.jpg; do convert "$image" -gravity center -crop 95X95% "${image%.jpg}"-modified.jpg done but it returns: convert.im6: unable to open image `/home/donald/Desktop/New Folder/*.jpg':...

Magick++ not loading from blog

I am using Magick++ to load some images. Because I want to wrap PhysFS for all of my image loads, I needed to load an image by blob instead of file path. This code: Magick::Image test("path/to/some.png"); Works without issue. However once I do a blob I get an exception: PhysFS::ifstream...

How to assign variable in fluid?

I want viewhelper that can be helpful to assign variable in fluid, I dont want variable to be passed from controller.

ImageMagick command without intermediary file fails

I'm working on the example from ImageMagick called "Gel" Effects on the ImageMagick Example pages. Instead of executing the ImageMagick script in many steps with intermediary images, I want to do it in ONE step with no intermediary files. My code looks like this (95% same as the example): convert.exe...

TYPO3-Upgrade 4.5 to 6.2: namespaces

I'm updating an old TYPO3 to latest verison 6.2.12. As I do so I replace deprecated classes with the proper namespaces. E.g. t3lib_div to \TYPO3\CMS\Core\Utility\GeneralUtility or t3lib_extmgm to \TYPO3\CMS\Core\Utility\ExtensionManagementUtility. But I cant find the proper namespaced class for t3lib_svbase. Any suggestions? . And I absolutely have no clue what I...

ImageMagick : Compose with results of multiple convert

I want to create an image from to others, which are results of convert operations their self, without saving intermediate results to file system. Long explanation: I have two images, the two needs specific transformations : avatar.jpg needs to be transformed to a rounded image -> rounded-avatar.jpg background.jpg needs to...

TYPO3 Solr extension and facets

I have a small question about TYPO3 solr facets.At present in my website I have 6 different indexing configuration available. Two of them are custom extension table's and one is tt_news and rest of the 3 are pages table with some custom condition. I managed to add this using additionalWhereClause...

Nodejs image crop by coordinates

Is there is way where we can give x, y coordinates while cropoing image. Currently what i am using is Imagemagick im.crop({ srcPath: upload_path+media_file_name, dstPath: upload_path+"thumb_"+media_file_name, width: 350, height: 210, quality: 1, gravity: 'Center' }, function(err, stdout, stderr){ }; This code is working but i haven't got luck with x,...

Why use ImageMagick in CMS like MediaWiki instead of simply using browser methods?

Can somebody explain to me why I should possibly use ImageMagick (or the fork GraphicsMagick) in a CMS instead of simply displaying and sizing my images via CSS? The browser methods cannot fail and are automatically updated on client side, the ImageMagick-binary can fail on the server and I have...

htaccess and authentication for multiple domains

I am running a mutlisite TYPO3-Site. For the pre-live process, I want to add a htaccess with a htpasswd for 3 / 4 sites. How can I configure the htaccess-file to trigger the authentication only for specific urls? For example: shouldn't get a password-protection, while should. Both sites...

I can't convert with ImageMagick

I'm using ImageMagick to convert a PDF file. I use this PHP snippet: $cadena = "/usr/local/bin/convert -density 100 -colorspace rgb ".$name_path." ".$images_path."/convert.png"; shell_exec($cadena); where $name_path is the PDF file directory and $images_path is the images directory. This code in console (CentOS) works perfectly. But when I try to use shell_exec()...

Typo3 6.2: “Could not find a suitable type converter for ”String“ ” exeption after update

Typo3 was from a very old version updated to Typo3 6.2. The most things are working now, but I have one own written extension that give me the following error: Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1297759968: Exception while property mapping at property path "":Could not find a suitable...

Language detection not working in Typo3 6.2.12

I've a website which has 2 languages: German (de) as default and English (en) as translated. I am trying to implement language detection functionality in the website using the extension "rlmp_language_detection" version 7.0.0. What I want to achieve is, for the countries Austria (at), Switzerland (ch) and Germany (de), the...

ImageMagick - Making 2 GIFs into side by side GIFs using IM convert

I have 2 GIFs that are the same length. I want to put the GIFs beside each other to have 1 GIF with both playing at the same time. I have tried to use the convert tool with: convert +append 1.gif1 2.gif output.gif However, this seems to blend all the...

tt_news single view with static news_id

I am using Typo3 Version 6.2 with the plugin tt_news. All I want to do is: Have a simple page on my website On that page I want to have a tt_news single view the news_id of this view should be static (set by me) and NOT by GET variables...

How to get typo3 settings in the utility files?

plugin.tx_xxx { setting { storagePid = 23 } } I want this typo3 settings in utility file. Please help me....

Find edges (border of rectangle) inside an image

I have an image of a sticky note on a background (say a wall, or a laptop) and I want to detect the edges of the sticky note (rough detection also works fine) so that i can run a crop on it. I plan on using ImageMagick for the actual...

Rapidly open 1,-1 data file as image

I'm working on a project that produces data files that are square matrices of numbers, either 1 or -1. I need to visualize this as images, and what I do now is using Matlab to open them, the matlab function imshow automatically draws those kind of matrices as monochrome black...

How to use Hook “processDatamap_postProcFieldArray” in TYPO3 6.x

Use case: When saving an object (in backend, maybe in frontend too later) I want to manipulate values before saving to database. Problem: The file seems to get included (shows an error on save if I choose a wrong file path) but the function does not seem to be executed...

How to disable cache for a image carousel in TYPO3

My TYPO3 extension has a lib that generates random 5 images from the total stock, for example out of the 100 images. This is done randomly every time the page is loaded. Only default the TYPO3 cache is enabled so every time the same 5 images are showed. As the...

Magick++ to display an image with CGI

I recently began using Magick++ (C++ API for ImageMagick) with the goal of creating a website that could display randomly generated images. I am trying to write a CGI script which would create a JPEG Image, set the color of its pixels, and then return the image information as Content-type:...

Imagemagick crop while keeping size

I want to crop the top 10 pixels of an image, but to keep the width All exmaples I found look like convert rose: -crop 90x60-10-10 crop_all.gif I need to supply the 90x60 so for the result size How can I crop with something like +0+10 and not supply a...

How to properly generate an A3 sized pdf from jpg with convert

On linux using the imagemagick tool convert, I want to convert my large jpg files into A3 pdfs <= 10MB in order to print those files with the best quality at the store. When running: $ convert summer-bokeh.jpg -quality 100 -density 300 -resize 2480x3508! summer_resized.pdf I'm trying to force the...

typo3 templavoila check current language

Hi i have 4 languages in my typo. Here is my main configuration for them: #LANGS config.linkVars=L config.defaultGetVars.L = 0 config.sys_language_overlay = hideNonTranslated [globalVar = GP:L = 3] config.sys_language_uid = 3 config.language = en config.locale_all = en_EN config.htmlTag_langKey = en plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 3 [globalVar = GP:L = 2] config.sys_language_uid =...

How can I replace the white rectangle within an image using ImageMagick?

Overview: The first picture is my original image. Here I want to replace the white rectangle shown with another image. My approach: I have created a mask image using floodfill and it looks as: Problem: Now I would like to get the distance or co-ordinates of the rectangle in the...

How to get Query object to felogin repository?

i need Query object of TYPO3\CMS\Felogin\Controller\FrontendLoginController in my extention repository so i can create my own query conditions.

CImg failed to recognize the format “jpeg”

To load image, I installed the CImg library in my mac(OSX 10.10). Luckily I managed to display the bmp picture, but I failed to load and display other formats like png or jpg. Then I installed the ImageMagic which is downloaded from and then run the program. The errors...

How to apply pagecurl effect on a static image by PHP

I want to apply a curl or peel effect on an image using PHP and ImageMagick. I tried various libraries in PHP, but only ImageMagick may do the same. I want the same output as here: ...

Routes for TYPO3 Neos plugin

I'm trying to define routes for my plugin. Everything is working as it should, because I got pretty URL on output, but unfortunately while I'm trying to access it I get an 404 error with message: #1303209195: No controller could be resolved which would match your request. Package key: "",...

Create two sizes of an image using one ImageMagick command

I am using ImageMagick to generate small size JPEG versions of large TIFF images. For each TIFF image I must generate two smaller JPEG versions. I am currently using two convert commands: convert.exe 4096-by-3072px-120mb.tif -resize "1024x>" -strip -interlace Plane 1024px-wide-for-web.jpg convert.exe 4096-by-3072px-120mb.tif -resize "1600x>" -strip -interlace Plane 1600px-wide-for-web.jpg Converting TIFF...

Convert multiple images with ImageMagick

I want to convert all my PNGs to PNG using ImageMagick (I need this because AndroidStudio has some issue with the original PNGs. ImageMagick is able to fix this issue by re-exporting the PNG.) If I do: convert a.png a.png it works. But how do I do this for many...

How to store ImageMagick output into Bash variable (and then use it)?

I use ImageMagick and need to do conditional resize of images. For that I store results of the identify tool into variables. $infile='test.jpg' width=$(identify -ping -format %w $infile) height=$(identify -ping -format %h $infile) But before resizing I want to do some transformations that change image size: -trim and -shave. So...

Typoscript add class to the first element using stdWrap

I have a custom requirement to display an image slider using TypoScript. The images are taken from default tt_content image content element. I've added the following TypoScript code to implement this; lib.homeslider = COA lib.homeslider { 10 = CONTENT 10 { table = tt_content select { where = colPos =...

userfunc condition for detecting mobile device

Since TYPO3 7 the condition 'device' and 'useragent' are deprecated. No I'm looking for a userFunc to use as a condition for detecting mobile devices. My aim is to hide or to show some special pages on mobile devices. I used the extension 'contexts_wurfl' for a while but I guess...

RMagic gem require error. cannot be opened

When I try the following in my controller, require 'RMagick' and running RAILS_ENV=production rake gems:install I am getting the following error. rake aborted! cannot open shared object file: No such file or directory - /usr/lib64/ruby/gems/1.8/gems/rmagick-2.10.0/lib/ When I checked, the file is present in the directory. ImageMagick is also...

How to lighten an image using ImageMagick like when using compare?

As you see in the answer “Diff” an image using ImageMagick, the "delta" image is somehow lightened: How would I lighten an image just like that using ImageMagick?...

How does my frontend usergroup list get lost between Extbase action controller and Fluid template partial in TYPO3 6.2?

I'm using TYPO3 CMS 6.2.12 and Extension Builder 6.2.0 to model a Report class and build an extension to manage it. One of the domain driven design requirements is that a report author be a logged-in front end user. A second requirement is that the author choose a single group...

Imagick Interprets external image as HTML

The problem I'm having is that when saving an image from a specific external website (not all websites), I get an error where the image is interpreted as html and not as another image format. So far, this website is the only site that I've experienced this problem on, but...

matplotlib to animated gif very slow

I'm animating a convergence process that I'm simulating in an IPython 3.1 notebook. I'm visualizing the scatter plot result in a matplotlib animation, which I'm writing out to an animated gif via ImageMagick. There are 3000 frames, each with about 5000 points. I'm not sure exactly how matplotlib creates these...

How to find the brightest pixel?

How do I find the brightness (i.e. V in HSV) of the brightest pixel in an image? I have a large collection of images that will be used as background assets. In order to make sure there are no bright spots that may distract the viewer, I'd like to find...

Use chop before resize in Imagemagick

I am using paperclip gem to process images. In some images, I need to chop the top 35 pixels of the source image and then do the conversions and processing Currently I am using :convert_options => { all: lambda{ |instance| "#{!instance.chop_top.blank? ? '-chop 0x35' : '' } -limit memory 64...

File url [tmp_name] after upload via Typo3 backend

I'm building a typo3 extension and in a backend plugin I want to build a image upload form. I seem not to get the correct $_Files url. The following fluid form is used: <f:form action="customerSliderImages" id="customerSliderImages"> <f:form.upload name="custSlider[sliderimage]" /> <f:form.submit value="Upload" /> </f:form> I want to have the [name] and...

Hide typo3 content elements for specific user(groups)

I want to "hide/deactivate" the table element for specific users/usergroups in the typo3 BE. Or to be more clear: I want to ONLY allow it to ONE specific user (admin). How can i do that? NOTE: At the moment the table element is deactivated in the global TS-config via tt_content...

TYPO3 Extbase build own Sitemap

There are a lot of sitemap Generators for TYPO3 in the TER available. But none of them can handle Sites created by Extbase, which are not shown in the TYPO3 page tree. Edit Thanks to biesior, detailed informations: Unconventional I switch in TypoScript the GET Parameter for my Extbase extension[globalVar...