General :: Should Jpegtran Remove More Bytes Than Mogrify Strip
Aug 23, 2011
I'm currently using mogrify -strip image.jpg to remove unwanted bytes from images, it was suggested I could remove further data by using jpegran from libjpeg, something like:
jpegtran -copy none -optimize -outfile image.jpg image.jpg
The problem I'm having - if it even is a problem - is that jpegtran doesn't seem to actually do anything that mogrify isn't already doing. In all my testing the filesize just stays the same. If I remove the mogrify part of my code and replace with jpegtran then it seems to perform the same function.
For example:
image without compression: 300k
image with mogrify -strip + jpegtran: 272k
image with mogrify -strip only: 272k
image with jpegtran only: 272k
I was under the impression though that mogrify just removed image profiles/comments and that jpegtran did this as well as losslessly compressing the image to make it smaller. Am I missing something?
View 1 Replies
ADVERTISEMENT
Jan 9, 2011
I recently had to move to a new machine, everything went well except for one thing. I did fresh installation of LAMP server all with default configs. Every time I'm using PHP script to that invokes include, require or require_once I get the following error:
Code: Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 7680 bytes) in /var/www/index.php on line 2 index.php file: PHP Code:
<?php include "index.php";?>
icukapi.php file:
PHP Code:
<?php echo "test";?>
My memory_limit in php.ini is set to 20M. I tried to increase that however it didn't quite work. PHP seems to allocate all possible space and return that message every time i try. If somebody has an idea of how to fix it I would be more than grateful. I spend quite a long time searching for an answer however the all things i found suggested increating memory_limit which in this case doesn't work.
View 1 Replies
View Related
Mar 23, 2011
I have a bunch of files (around 900) that have some special characters. Some of the files contains example, and quoting "[useless] filename (something)"so what I want is just to strip the brackets and parenthesis, some are folders, others are text files
View 1 Replies
View Related
Apr 3, 2011
I have just created a usb boot disk so that I can install Fedora 14.I used the following which was successfully. However, I am left wondering what does the bs parameter actually does. I know it mean bytes and copies these at a time. But how do I know what to set it to?dd if=F14-Live-i686.iso of=/dev/sdb bs=8MIn the above example it is set to 8MB. However could I set this to any value that I want?
View 1 Replies
View Related
Aug 17, 2010
I lost an important file. I know what bytes the file begins with. How can I search the partition for the sequence of bytes?
View 4 Replies
View Related
Oct 11, 2010
I have an external hdd which is formatted with fat for use by both on linux and windows. The issue is that I can't delete some of the files I have which show up with size 0. Also, the modification timestamp (as detected by Krusader, the file manager I am using) is 1935. How can I delete these kind of files without affecting the running fs?
View 1 Replies
View Related
Jun 10, 2011
For backup purposes, I have been trying to find out a solution for Rsync -avr sourcefolder targetfolder with Skipping 0 bytes files option.
However it seems that they are no solutions. Would someone have an idea, to skip to source files into the sourcefolder that have no content, ie. 0 bytes?
View 2 Replies
View Related
Mar 10, 2010
How do you calculate the number of usable bytes on a disk partition? When I do an fdisk -l I get this:
Disk /dev/md0: 192.0 GB, 192069500928 bytes
2 heads, 4 sectors/track, 46891968 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
[code]...
View 7 Replies
View Related
Nov 24, 2010
I have AMD Phenom 8550 triple code processor, with 2.20ghz speed and 4gb ram. I am trying to install Redhat linux 9 first time. I am new to linux. While install system hangs with message
ehci-hcd 00:13.2: PCI device 1002:4396
echi-hcd 00:13.2: irq 10, pci mem f880f800
usb.c: new usb bus registered, assigned bus number 2
PCI:00:13.2 PCI cache line size set incorrectly (64 bytes) by BIOS/FW" expecting 16
how to get rid of this message
View 9 Replies
View Related
Nov 26, 2010
I have a very very insane problem with my ssd sata harddisk. I did fill the harddisk, and Thunderbird complained about "no space left on device". But even if I delete some files from the harddisk, df will still say 0 blocks free. But it will decrease the number of used blocks. So it looks like it is freeing the blocks and deleting the files, but it don't put the blocks back to the free pool.
But here is where things get insane: If I log in with my normal user, I get a "No free space" when I try to write to the harddisk. But If i log in as root I can write to the file system, despite the fact that df is saying 0 blocks free. I did try to run fsck -f but it just run its test and then say that anything is fine. But it run for less then 10 seconds, is this expected on a 40GB ssd partition?.
[Code]...
View 3 Replies
View Related
Jan 14, 2011
i would like to add 8 bytes of data to the begigning of a binary file.is there a command for this?
View 2 Replies
View Related
May 3, 2011
Mounted second hard disk still report 0 bytes even when files are already deleted in rhel5 . I already checked the lost+found and trash . It only happen that disk space on deleted files cannot be recovered after the disk reach full capacity , but if it does not reach yet its full capacity , deleting files will recover the disk space . The format of the disk I have mounted is ext3 also have tried ntfs using fuse but the same problem , once allowed to reach 0 bytes I can no longer recover space with deleting files and had to reformat and restore the backup
View 4 Replies
View Related
Jan 7, 2010
I'm trying to strip down a 9.10 installation, which is destined to sit in the attic and act as a file/download server. Using Webmin (which is the greatest thing I have seen on Ubuntu, it rocks) I notice that the BIND process is using 5MB of memory, on an idle machine. Do I need this installed on a desktop machine ? Can folks suggest anything else I can disable/uninstall for a machine. I'm using neatx to connect to it, and Vuze as a torrent client.
View 3 Replies
View Related
Nov 9, 2009
I have some text based reports in which I would like to strip the "Current Date" from and replace with equivalent number of empty spaces, for every occurrence.For example, here is what I need to strip:
Date: 11/09/09
If I manually run the following SED command, it works great, however I cannot seem to find a way to use the actual "date" command within SED, to get the desired results.
WORKING: sed -i -e 's/Date: 11/09/09/ /' myfile
I've been messing around with various attempts to do this using the "date" command within SED, but I just can seem to get it right. I've also attempted defining variables which call separate "date" commands for day, month, year and inject them via standard variable calling, echoing variable, expanding variable with brackets, etc... Here are a few of the SED command attempts I've tried:
Quote:
sed -i -e 'sate: `date +%D`: :' myfile
sed -i -e "s/Date: `date +%d`/`date +%m`/`date +%y`/ /" myfile
sed -i -e 's/Date: `date +%d`/`date +%m`/`date +%y`/ /' myfile
sed -i -e 's/Date: $(date +%D) / /' myfile
I need to replace it with the equivalent number of spaces, as I'm going to be overlaying a PCL Logo here and need to keep the structure of the rest of the file. Cannot have the remaining portion of the line shifting left.
View 5 Replies
View Related
Mar 7, 2011
how can i strip out the # command in CLI on openSUSE? or the exact way of this command in ubuntu
sh -c "grep -v -e '^#' /etc/squid/squid.conf.backup | cat -s > /etc/squid/squid.conf"
View 6 Replies
View Related
Jan 27, 2011
when i use image magick...in command, use -strip, can remove image's verbose but c++ code, how can i do?
View 1 Replies
View Related
Apr 5, 2010
I'm having some difficulties with the comic strip widget that I use to keep me updated on Dilbert. It started out in ok-ish size, a little small, but readable. Now the entire strip takes up 3x3 cm, totally unreadable. Is there anyway to fix that?
Here is a screeshot of it:
[URL]
View 3 Replies
View Related
Sep 6, 2010
I'm trying to get a minimalCD installation on a flashdrive but the installation never finishes... (i've left the installation runnin overnight for over 12hrs and only 90 percent got completed; whenever trying to retrive packages from the internet the process slows down to a crawl; i've tried ext4, ext3, ext2 and resierfs)normal Desktop insatallation works fine; so I was wondering if there is anyway to strip all the packages off a normal installation to get it to minimal installation, and than start installing the pacakges i need?
View 4 Replies
View Related
Nov 18, 2010
If I click the mouse anywhere inside firefox browser window I get a big black strip and it blink on and off. See screen shot.Screenshot-Navigating and Working in Scribus | Linux Journal - Mozilla Firefox.jpg.I can get it to stop by doing a page reload. But it is very annoying. Has this happen to anyone else? If it has has anyone found a fix for this? While I was typing this it happen again.Screenshot.jpg
View 1 Replies
View Related
Aug 22, 2011
I've noticed in Ubuntu that a lot of applications like to make use of the strip of menus that go at the top of the screen; I think it's called a menu strip in Visual Studios.Anyways, the only way I can see it (that I've figured out thus far) is to drag the window to the top of my screen, thus maximizing it, then use the menu, and put it back.What I want is a less... tedious way of accessing those commands, preferably without changing my window position. Is there a trick to it? In windows, unlike Ubuntu, that strip is available regardless of window size; is there a reason it disappears in my Ubuntu?
View 1 Replies
View Related
Oct 28, 2010
I have a quirky situation whereby I'm using SED to selectively comment out a line in a crontab job (on Solaris, I know but it's connected to the Linux function I'm working with).
What's happening is this.
Remove hash symbol
Code:
/opt/csw/bin/gsed -i '/^.*/usr/local/scripts/mirror-fix.sh.*/ s/^#//' $TEMPFILE
Restore hash symbol
Code:
/opt/csw/bin/gsed -i '/^.*/usr/local/scripts/mirror-fix.sh.*/ s/^/#/' $TEMPFILE
The problem I'm running into is that the script can sometimes prepend an extra hash # symbol if run more than once (I have a lockfile that I poll for to discourage this, but that's not perfect).
I wonder how I can modify that sed statement to remove any/all leading hash marks up to the first other character, in this case it's a 0 (zero) which is a crontab file.
View 8 Replies
View Related
Apr 6, 2011
dhclient does not strip or escape shell meta-characters
Summary: dhclient doesn't strip or escape certain shell meta-characters in dhcpd responses, allowing a rogue server or party with with escalated privileges on the server to cause remote code execution on the client.
CVE:
ISC dhclient did not strip or escape certain shell meta-characters in responses from the dhcp server (like hostname) before passing the responses on to dhclient-script. Depending on the script and OS, this can result in execution of exploit code on the client.
CVSS Score:
For more information on CVSS scores, visit [url]
Workarounds:
On SUSE systems, it is possible to disable hostname update by setting DHCLIENT_SET_HOSTNAME="no" in /etc/sysconfig/network/dhcp.
Other systems may add following line to dhclient-script at the beginning of the set_hostname() function:
In environments where filters/acls can be put into place to limit clients to accessing only legitimate dhcp servers, this will protect clients from rogue dhcp servers deliberately trying to exploit this bug.
However, this will not protect from compromised servers.
Active exploits:
Solution:
Upgrade to 3.1-ESV-R1, 4.1-ESV-R2 or 4.2.1-P1. [url]
No patch is available for 4.0.x as it is EOL. Anyone running 4.1.x should upgrade to 4.1-ESV-R2.
Acknowledgments:
Revisions:
View 1 Replies
View Related
Apr 30, 2011
Is there any way to change the window scrollbars in 11.04 from the frankly annoying minimalist orange strip to the far more user friendly large bar with clickable arrows top and bottom?
I'm using Ubuntu Classic Desktop...if I really couldn't get on with this scrollbar...would I actually have to go back to the previous OS release?
View 1 Replies
View Related
Dec 10, 2009
I can configure my software's appearance? Well, for the KDM theme, the Grub Bootsplash, i can download themes people so generously create. I however, desire the BOOTSPLASH. or whatever it is, of openSUSE 11.1. the green with white veins in the background, and a strip of black running horizontally across, with "openSUSE" written on it in white. i mean the one that masks the initial Text interface, the FIRST GUI you see after GRUB. The one that also shows when you power down. Is this a plausible endevour? I do have my 11.1 iso, in case it's stored as a theme in there.
View 6 Replies
View Related
Feb 17, 2010
I am a brand new member
here is my question :
in a RedHat configuration :
i need to be sure that a partition has been formatted with those parameters code...
View 3 Replies
View Related
Jan 8, 2011
How do fix my Swap Partition? Last night I added unused space to the main Ubuntu partition. Now I noticed the Swap Partition is always at 0 bytes. I'm using a Sony Laptop, and have enclosed two screenshots. One of the Disk Utility and a system monitor.
View 9 Replies
View Related
Sep 14, 2010
I need to get usage's bytes of a specific (src/dst)IP adress;can i use this
#iptables -L -n -v -x
with the other options that get only byte of the specific IP address?
View 4 Replies
View Related
Dec 17, 2008
How do i fill a file with <n> bytes at a given value ,for example 3?
View 3 Replies
View Related
Jan 14, 2010
Every single blank CD i put into my computer show it has 0 bytes of memory and i cannot write things onto them. I dual boot 9.10 and Windows XP, and Windows reads them just fine. Ubuntu will mount the disk as "Blank CD-R Disc, i can access it, and everything works except when i look at the properties it says there are 0 bytes used and 0 bytes free. The drive reads discs with data on them just fine, and they work flawlessly, its just blank discs that dont work. What i need to know is if there some property i need to change or a line i need to put in the terminal to make it read blank discs? Or am i completely screwed?
View 5 Replies
View Related
Dec 5, 2010
As a recent migrant to Ubuntu from Windows, I was expecting to be able to compare the sizes of two folders or set of folders by Bytes (as in windows). I'm slightly OCD when it comes to my personal files and folders, and I like to maintain identical backups in various pen-drives; as such, I was hoping to be able to track the file sizes of each folder set, but I can only do so in Kilobytes... Is there any application or other means by which to compare sizes in bytes --as is the case in windows?..
View 1 Replies
View Related