Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 15 2020 07:35
    yogeshsaroya closed #180
  • Jun 15 2020 07:33
    mosbth labeled #180
  • Jun 15 2020 07:33
    mosbth labeled #180
  • Jun 15 2020 07:33
    mosbth assigned #180
  • Jun 15 2020 07:33
    mosbth commented #180
  • Jun 13 2020 15:13
    yogeshsaroya opened #180
  • Jun 09 2020 08:19
    yogeshsaroya closed #179
  • Jun 09 2020 08:11
    yogeshsaroya opened #179
  • Jun 08 2020 10:49
    Travis mosbth/cimage (v0.8.1) errored (333)
  • Jun 08 2020 10:48
    Travis mosbth/cimage (master) errored (332)
  • Jun 08 2020 10:39

    mosbth on v0.8.1

    (compare)

  • Jun 08 2020 10:39

    mosbth on master

    Updated version number in defin… (compare)

  • Jun 08 2020 10:38
    Travis mosbth/cimage (v0.8.0) errored (331)
  • Jun 08 2020 10:37
    Travis mosbth/cimage (master) errored (330)
  • Jun 08 2020 10:34
    mosbth commented #177
  • Jun 08 2020 10:28
    mosbth labeled #177
  • Jun 08 2020 10:27

    mosbth on v0.8.0

    (compare)

  • Jun 08 2020 10:27

    mosbth on master

    Add function getValue() to read… Set PHP 7.0 as precondition (to… Enable to set JPEG image as int… (compare)

  • Jun 08 2020 04:49
    yogeshsaroya commented #177
  • May 06 2020 08:01
    Travis mosbth/cimage (v0.7.23) errored (329)
Mikael Roos
@mosbth
Youve checked the comment here, on when the password check is applied?
Passwords are only used together with options for remote download and aliasing.
Joe Harby
@joeharby
Hey @mosbth, how is the cache folder controlled? Do the cached files purge automatically at a set interval? Is there anyway to process remote images, but not hold them in the cache directory?
Mikael Roos
@mosbth
@joeharby tha cache-folder is not managed at all, to control it you may set up a crontab with a script, separate from the cimage script. There is some outline for script in bin-folder but it would need som customizing.
Mikael Roos
@mosbth
@joeharby there is currently no way to process a remote image without saving it to the cache/remote. The remote image needs to be downloaded once and saved in cache/remote. That downloaded copy of the image will then be the base for any further image processing which will be done locally. Thats the basic idea.
Joe Harby
@joeharby
@mosbth is there a filter to remove/crop background colors off of an image? For example, I have thousands of images coming in from a feed that's updated every 15 minutes, and there's a bunch of images that have a thick white border at no specified size/thickness. Is there a way to remove the background, and crop the image without the white surrounding with a Cimage function? Example image: https://cache.wovax.com/example.jpg
The above image would become something like this after being processed, and cached: https://cache.wovax.com/example-2.jpg
Mikael Roos
@mosbth
Cimage has no such filter today, no. Seems feasible to do however, in https://stackoverflow.com/questions/1669683/crop-whitespace-from-image-in-php I found http://fi2.php.net/manual/en/imagick.trimimage.php which seems to do what you want. Perhaps a small script to preprocess your images?
asif-sk
@asif-sk
Hello, i have a website where we are using this CIMAGE script
recently we have activated SSL on our website, the website is working fine but the images are not working and giving this error:

[img.php]

img.php: Uncaught exception:

Failed retrieving url, details follows: Peer's Certificate issuer is not recognized.

#0 /var/www/html/assets/img.php(804): CHttpGet->doGet()

#1 /var/www/html/assets/img.php(1851): CRemoteImage->download('https://mywebsite...')

#2 /var/www/html/assets/img.php(1879): CImage->downloadRemoteSource('https://mywebsite...')

#3 /var/www/html/assets/img.php(5553): CImage->setSource('https://mywebsite...', '/var/www/html/a...')

#4 {main}

what could be the reason?
Mikael Roos
@mosbth
asif-sk
@asif-sk
let me check
Mikael Roos
@mosbth
Check if you can download the image through curl on the server. Perhaps you will see the same error there (not only related to PHP, perhaps also related to curl).
asif-sk
@asif-sk
thanks the issue is now resolved
Mikael Roos
@mosbth
Nice.
asif-sk
@asif-sk
the certificate bundle file was not included in ssl.conf
Mike Ellis
@m1ke_ellis_twitter
@mosbth I'm seeing a weird "must set src attribute" error, even though ?src=* is in the URL
Using imgp.php
Any ideas?
Looked at code and can see you're using get('src') which is not something I'm familiar with
Mikael Roos
@mosbth
How does the url look like?
this all seems ok
Mikael Roos
@mosbth
hmm.
Mike Ellis
@m1ke_ellis_twitter
I literally just have imgp.php in a folder, that's the "bundled version", so shouldbe ok, right?
I mean, no other dependencies?
Mike Ellis
@m1ke_ellis_twitter
yeh..
Mikael Roos
@mosbth
But its not displayed correctly and the error message is a bit odd.
Mike Ellis
@m1ke_ellis_twitter
ok, this is odd, not sure if some cache thing
but I can see this ok:
but this, no:
only difference is order of querystrings....?!
Mikael Roos
@mosbth
The order should not matter.
Mike Ellis
@m1ke_ellis_twitter
no, that's what I would assume
Mikael Roos
@mosbth
I can now see both your links of POMC02603.jpg, one of them needed to be recreated in the cache, by adding &nc or &no-cache. That recreates the image in the cache.
Mike Ellis
@m1ke_ellis_twitter
ok...
so there's something odd about the cache maybe
Mikael Roos
@mosbth
Yep
The first image is also okey now (I recreated it using &nc).
Mike Ellis
@m1ke_ellis_twitter
k
There are things appearing in the cache directoy
so it's writeable ok
Mikael Roos
@mosbth
Hmmm.